[Issue 11505] New: Bad error message: "opAssign [...] is annotated with @disable"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 12 11:10:11 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11505
Summary: Bad error message: "opAssign [...] is annotated with
@disable"
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: diagnostic, rejects-valid
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bugzilla at kyllingen.net
--- Comment #0 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2013-11-12 11:10:07 PST ---
Reduced test case:
struct Foo
{
Bar b;
unittest
{
Foo f;
f = Foo();
}
}
struct Bar
{
~this() @safe { }
struct Inner { }
Inner* i;
}
As far as I can tell, the above is valid code, but when I run "dmd -c -unittest
test.d", DMD spits out:
test.d(7): Error: function test.Foo.opAssign is not callable because it is
annotated with @disable
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list