[Issue 3812] New: Missing line number for implicit cast of variadic function to array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 18 07:16:14 PST 2010
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: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at 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: -------
More information about the Digitalmars-d-bugs
mailing list