History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-605
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Rodrigo B. de Oliveira
Reporter: Cameron Kenneth Knight
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

Varargs messes up if there are multiple methods with the same name.

Created: 14/Nov/05 04:50 PM   Updated: 17/Nov/05 07:27 PM
Component/s: Compiler
Affects Version/s: None
Fix Version/s: 0.7.5

Time Tracking:
Not Specified

Environment: Boo 0.7 and Boo SVN 2005-11-14
Issue Links:
Duplicate
 


 Description  « Hide
class Database:
def Select(variable as string, *variables as (string)):
return Statement.Select(self, variable, *variables)

class Statement:
private def constructor(database as Database):
_database = database

static def Select(database as Database, variable as string, *variables as (string)) as Statement:
return Statement(database).Select(variable, *variables)

def Select(variable as string, *variables as (string)) as Statement:
// do stuff
return self

_database as Database

##############

>booc varargs.boo
varargs.boo(3,49): BCE0119: Explode expression can only be used as the last argument to a callable which takes a variable number of arguments.
varargs.boo(10,53): BCE0119: Explode expression can only be used as the last argument to a callable which takes a variable number of arguments.
2 error(s).

http://ckknight.no-ip.org:8080/paste/?id=174



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Cameron Kenneth Knight - 14/Nov/05 04:51 PM
fixed indentation (hopefully)

Doug H - 14/Nov/05 05:55 PM
This duplicates BOO-408