Summary: shared value data structures should implicitly cast to
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from Steven Schveighoffer <> 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

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to