[Issue 6960] New: detect static array parts of array literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 16 13:24:43 PST 2011


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: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at 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: -------


More information about the Digitalmars-d-bugs mailing list