Ticket #222 (closed defect: fixed)
Bad attempt to declare constant causes COBRA INTERNAL ERROR - Null ref exception
Reported by: | nevdelap | Owned by: | Chuck |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
class Program var a as int is shared const b = 2 * .a # OK error: The expression being assigned to "Program.A" must be constant const c = 2 * .b # OK const d = 2 * .e # COBRA INTERNAL ERROR def main pass get e as int is shared # BTW, same with or without shared. return 2
error: COBRA INTERNAL ERROR / NullReferenceException? / Object reference not set to an instance of an object
Attachments
Change History
Note: See
TracTickets for help on using
tickets.