http://d.puremagic.com/issues/show_bug.cgi?id=8212
Summary: shared value data structures should implicitly cast to mutable Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: regression Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: schvei...@yahoo.com --- Comment #0 from Steven Schveighoffer <schvei...@yahoo.com> 2012-06-08 15:09:07 PDT --- in 2.059, this works: shared int x; void main() { int y = x; } However, this does not: struct S { int x; } shared S s; void main() { S s2 = s; } Error: cannot implicitly convert expression (s) of type shared(S) to S Clearly these are equivalent. The above code compiles fine in 2.056, but not in 2.057, so I marked this as a regression. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------