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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Lars T. Kyllingstad <[email protected]> 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: -------