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



--- Comment #1 from Kenji Hara <k.hara...@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: -------

Reply via email to