ooc

static constants in classes don't allow arithmetic

Bug #403813 reported by Friedrich Weber
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ooc
Fix Committed
Undecided
Unassigned

Bug Description

This code doesn't compile for me:

class Blah {
    static const UInt A = 1 + 1;
}

func main;

It says "./test.ooc:2:30: Unexpected node Plus which looks like '+', in doubt, no writing"

Revision history for this message
Amos Wenger (amoswenger) wrote :

That's quite lolesque. Fixed a *long* time ago.

Changed in ooc-language:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.