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

           Summary: Missing line number for implicit cast of variadic
                    function to array
           Product: D
           Version: 2.038
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@yahoo.com.au> 2010-02-18 07:16:12 PST ---
T[] toArray(T)(T[] values...)
{
    return values.dup;
}

int[] array = toArray(1.0,2.0,3.0); 

----
Error: cannot implicitly convert expression ([1,2,3]) of type double[] to int[]

Only applies in 2.038 and later. Behaviour in D2.037 was different; old
behaviour still happens in D1.

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

Reply via email to