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

           Summary: Tuple creation problem with array of array
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-01-31 02:13:56 PST ---
import std.typecons: Tuple;
void main() {
    alias T = Tuple!(int[1][]);
    auto t = T([[10]]);
}



DMD 2.062alpha:

...\dmd2\src\phobos\std\typecons.d(405): Error: cannot implicitly convert
expression (_param_0) of type int[][] to int[1u][]
test.d(4): Error: template instance
std.typecons.Tuple!(int[1u][]).Tuple.__ctor!(int[][]) error instantiating

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

Reply via email to