Summary: Can't implicitly cast static arrays of primitives to
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from David Simcha <> 2010-07-13 12:09:39 PDT ---
Now that static arrays are value types, this should be legal because there's no
mutable indirection:

void main() {
    immutable uint[2] foo = getArray();

uint[2] getArray() {
    uint[2] ret;
    return ret;

It doesn't work on 2.047.  Instead I get:

Error: cannot implicitly convert expression (getArray()) of type uint[2u] to

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

Reply via email to