http://d.puremagic.com/issues/show_bug.cgi?id=10002
Summary: 2.062 -> 2.063 call of "remove" is impure
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Henning Pohl <[email protected]> 2013-04-28 14:50:14
PDT ---
import std.algorithm;
class Node {
Node parent;
Node[] children;
void foo() pure {
parent.children.remove!(n => n is parent)();
}
}
2.063:
-----
main.d(8): Error: pure function 'foo' cannot call impure function 'remove'
-----
Note: Moving "parent" into "foo" will make 2.062 reject it, too.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------