[Issue 16779] VRP for array literals does not work with templated functions taking a static array if the size is inferred
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 15 02:54:36 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=16779
Timothee Cour <timothee.cour2 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |timothee.cour2 at gmail.com
--- Comment #1 from Timothee Cour <timothee.cour2 at gmail.com> ---
same problem with tuples
U[T.length] staticArray(U = CommonType!T, T...)(T a)
{
return [a];
}
auto a = staticArray2!bute(1, 2);
Error: cannot implicitly convert expression [_param_0, _param_1] of type int[]
to byte[2]
--
More information about the Digitalmars-d-bugs
mailing list