Boo

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 0.7.5
  • Component/s: Compiler
  • Labels:
    None
  • Environment:
    Boo 0.7 and Boo SVN 2005-11-14
  • Number of attachments :
    0

Description

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

Issue Links

Activity

Hide
Cameron Kenneth Knight added a comment -

fixed indentation (hopefully)

Show
Cameron Kenneth Knight added a comment - fixed indentation (hopefully)
Hide
Doug H added a comment -

This duplicates BOO-408

Show
Doug H added a comment - This duplicates BOO-408

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: