Issue Details (XML | Word | Printable)

Key: BOO-369
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Rodrigo B. de Oliveira
Reporter: Vincent Penne
Votes: 0
Watchers: 0
Operations

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

compiler internal error when a field has an initialiser taking a closure as argument

Created: 23/Jun/05 10:56 PM   Updated: 30/Jun/05 08:53 PM
Component/s: None
Affects Version/s: 0.7
Fix Version/s: 0.6

Time Tracking:
Not Specified

Environment: Gentoo Linux/Mono


 Description  « Hide
Following code produces an internal compiler error :

callable handler(a as int) as int

class Action:
cb as handler
def constructor(callback as handler):
cb = callback

class A:
a as Action

ac = Action() def(para):
newa = A(32)

def constructor(p):
a = ac

But if you replace

ac = Action() def(para):

by

ac as Action = Action() def(para):

or if you remove the line

newa = A(32)

or if you remove the line

a = ac

(replacing them by print "hello" for example) then it compiles (though I'm not sure the generated code is correct)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.