Forums

not very helpful compiler message on missing pars

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

not very helpful compiler message on missing pars

Postby jonathandavid » Thu Dec 11, 2008 10:38 am

If I write:

class Simple
def main is shared
print int.parse("1" # UPS!


I get the following compiler error (translated from Spanish):

error: COBRA INTERNAL ERROR / NullReferenceException / Reference to object not set as object instance

Of course in this simplified example it's easy to know what's going on, but it took me several minutes in some code that involved 3 nested pars.

Regards,
Manuel
jonathandavid
 
Posts: 159

Re: not very helpful compiler message on missing pars

Postby Charles » Thu Dec 11, 2008 6:05 pm

Fixed and checked in with test case.

Thanks for the report.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 49 guests