http://d.puremagic.com/issues/show_bug.cgi?id=6330
Summary: Cannot disable assignment to a struct.
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from David Simcha <[email protected]> 2011-07-15 20:07:41 PDT ---
struct S {
void opAssign(S s) @disable {
assert(0); // This fails.
}
}
void main() {
S s;
S s2;
s2 = s;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------