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

Key: BOO-753
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Dominik Zablotny
Votes: 0
Watchers: 1
Operations

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

cannot call params super constructor

Created: 07/Sep/06 08:03 PM   Updated: 08/Sep/06 02:51 PM
Component/s: Compiler
Affects Version/s: 0.7.6
Fix Version/s: 0.7.7

Time Tracking:
Not Specified

File Attachments: 1. File xgt.boo (0.1 kb)

Environment: Boo Compiler version 0.7.6.2320 (CLR v1.1.4322.2032)

Testcase included: yes


 Description  « Hide
It is not possible to call super() constructor if it has variable number of parameters, and you are passing more than one
Error: xgt.boo(11,14): BCE0055: Internal compiler error: Array index is out of range..
Sample code:

import System

class Hey:

def constructor(*foo):
print "hey"

class Ho(Hey):

def constructor():
super("a", "b")
print "ho"

Ho()

While this compiles ok:

import System

class Hey:

def constructor(*foo):
print "hey"

class Ho(Hey):

def constructor(*bar):
super(bar)
print "ho"

Ho()



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dominik Zablotny - 07/Sep/06 08:05 PM
I have pasted second case by mistake, it may be misleading.\
It is sufficient to pass one parameter, like "a" to compile properly

Rodrigo B. de Oliveira - 08/Sep/06 02:51 PM
Thanks for the report!