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

           Summary: detect static array parts of array literal
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: timon.g...@gmx.ch


--- Comment #0 from timon.g...@gmx.ch 2011-11-16 13:23:56 PST ---
void main(){
    int[2][] foo = [[1,1]];       // ok
    int[2][] bar = foo ~ [[1,1]]; // compile error
}

In the first case the compiler automatically figures out how to type the array
literal. The second line should compile too.

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

Reply via email to