[Issue 9040] Assertion `precedence[e->op] != PREC_zero' failed instantiating anonymous class at compile time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 26 06:03:56 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9040


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich at gmail.com
         Resolution|                            |WORKSFORME


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-09-26 06:03:54 PDT ---
In 2.063.2 this now prints:

test.d(9): Error: variable test.main.staticInstance is mutable. Only const or
immutable class thread local variable are allowed, not test.BaseClass

Unfortunately there's a new issue:

-----
class BaseClass {}

void main()
{
    static BaseClass staticAnonInstance = new class BaseClass {};
}
-----

However this is a separate issue, so I'll file it as a new bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list