https://issues.dlang.org/show_bug.cgi?id=13964
Issue ID: 13964
Summary: InputRange!T doesn't have save method
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
This fails (due to a lack of a save method?):
```
import std.range;
void main()
{
InputRange!int range = inputRangeObject([1, 2, 3]);
auto range2 = range.save();
}
```
/d812/f275.d(6): Error: template std.array.save cannot deduce function from
argument types !()(InputRange!int), candidates are:
/opt/compilers/dmd2/include/std/array.d(429): std.array.save(T)(T[] a)
(http://dpaste.dzfl.pl/bde562b99c5a)
--