[Issue 13964] New: InputRange!T doesn't have save method
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jan 9 23:25:21 PST 2015
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: nobody at puremagic.com
Reporter: luis at luismarques.eu
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)
--
More information about the Digitalmars-d-bugs
mailing list