www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6960] New: detect static array parts of array literal


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

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