[Issue 13864] tuple expand causes range violation
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Dec 16 08:15:43 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13864
--- Comment #4 from Vlad Levenfeld <vlevenfeld at gmail.com> ---
its not writeln, this works as well:
auto f (T...)(T)
{
}
void main (string[] args)
{
int[] x = [2,3,4];
f (x[0]);
auto a = x[0.tuple.expand]; // range violation if commented out
f (x[0.tuple.expand]);
}
--
More information about the Digitalmars-d-bugs
mailing list