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

--- Comment #0 from Don <> 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:
------- You are receiving this mail because: -------

Reply via email to