https://issues.dlang.org/show_bug.cgi?id=12996
Issue ID: 12996
Summary: SList: linearRemove can't remove unmodified list's
slice
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: Phobos
Assignee: [email protected]
Reporter: [email protected]
This works:
```
auto s = SList!int(1, 2, 3, 4, 5);
auto r = s[];
popFrontN(r, 1);
auto r1 = s.linearRemove(r); // works
```
and
```
auto s = SList!int(1, 2, 3, 4, 5);
auto r = s[];
auto r1 = s.linearRemove(r.take(5)); // works
```
And this not:
```
auto s = SList!int(1, 2, 3, 4, 5);
auto r = s[];
auto r1 = s.linearRemove(r); // exception
```
--