http://d.puremagic.com/issues/show_bug.cgi?id=6588
Marco Leise <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from Marco Leise <[email protected]> 2012-11-10 17:04:42 PST --- (In reply to comment #1) Thanks I think in my case I can then implement opAssign to skip the assignment of immutable fields. Here is a real short test case without templates: struct Bug6588 { immutable int x; ~this() {} } Also this is related: struct Bug6588 { immutable int x; ref Bug6588 test() { return this; } // this is not mutable ref const(Bug6588) test() { return this; } // ok } The compiler has a hard time with partial const/immutable structures. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
