[Issue 12643] @nogc std.range.dropOne
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jul 11 09:52:46 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12643
Justin Whear <justin at economicmodeling.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |justin at economicmodeling.com
--- Comment #1 from Justin Whear <justin at economicmodeling.com> ---
The array literal will trip in this case. This test code compiles with the
latest git head (v2.066-devel-8bee69a):
unittest
{
void ensureNoGC() @nogc
{
int[] a1;
auto a2 = a1.dropOne;
auto s1 = "hello";
auto s2 = s1.dropOne;
}
}
--
More information about the Digitalmars-d-bugs
mailing list