Anonymous nested class of problems

Tomek Sowiński just at ask.me
Sat Dec 12 04:16:29 PST 2009


Dnia 12-12-2009 o 13:09:49 Tomek Sowiński <just at ask.me> napisał(a):

> Error: no constructor for __anonclass10

This one seems to be unrelated to anonymous stuff.

class M {
     this(byte a) { _a = a; }
     byte _a;
     byte a() { return _a; };

     static m = new M(3);
}

I get: Error: no constructor for M.


Tomek


More information about the Digitalmars-d-learn mailing list