[Issue 10099] Diagnostic for disabled default construction should improve

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 18 08:04:48 PDT 2013


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



--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2013-05-18 08:04:46 PDT ---
> test.d(12): Error: struct test.S cannot be default-initialized because it has a default constructor annotated with @disable

It seems to me that is a little long message. More shorter is better.

With new expression:

struct S {
    @disable this();
}
class C {
    S s;
}
void main() {
    auto x = new C();
}

test.d(11): Error: default construction is disabled for type C

How about using "default construction is disabled for type XXX"?

-- 
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