Classes and @disable this()

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Feb 8 09:51:09 PST 2015


fra:

> However making it a compiler error would be far, far better

I think this can be filed in Bugzilla as diagnostic enhancement:


class Foo {
     @disable this();
     this(int i) {}
}
void main() {}

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list