http://d.puremagic.com/issues/show_bug.cgi?id=8400

           Summary: static array type cannot interpret dynamic array
                    length
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: timon.g...@gmx.ch


--- Comment #0 from timon.g...@gmx.ch 2012-07-18 15:56:56 PDT ---
DMD 2.059:

void main(){
    immutable a = [1,2];
    int[a.length+0] b; // ok
    int[a.length  ] c; // error
}

The code should compile.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to