[Issue 13223] Cannot deduce argument for array template parameters
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jul 29 01:37:11 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13223
--- Comment #1 from Dragos Carp <dragoscarp at gmail.com> ---
T foo(T)(T a1, T a2)
{
return a1 ~ a2;
}
void main()
{
int[] a = [1, 2];
assert(foo(a, []) == [1, 2]);
}
This code (non array template types) works with 2.066.0-b6 and generates the
previous described compile error with 2.065.
--
More information about the Digitalmars-d-bugs
mailing list