[Issue 12742] @nogc std.algorithm.remove

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Dec 6 03:47:50 PST 2014


https://issues.dlang.org/show_bug.cgi?id=12742

--- Comment #2 from bearophile_hugs at eml.cc ---
import std.algorithm: remove;
auto a = [1];
void main() @nogc {
    a = a.remove(0);
}


dmd 2.067alpha:

test.d(4,17): Error: @nogc function 'D main' cannot call non- at nogc function
'std.algorithm.remove!(cast(SwapStrategy)2, int[], int).remove'

--


More information about the Digitalmars-d-bugs mailing list