[Issue 18437] New: Dlang's range section of the language tour produces an error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 14 13:00:23 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18437
Issue ID: 18437
Summary: Dlang's range section of the language tour produces an
error
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: trivial
Priority: P1
Component: dlang.org
Assignee: nobody at puremagic.com
Reporter: michael at toohuman.io
At the following page:
https://tour.dlang.org/tour/en/basics/ranges
Running the Fibonacci example at the bottom produces the following error:
onlineapp.d(35): Error: template std.range.take cannot deduce function from
argument types !()(FibonacciRange, int), candidates are:
/dlang/dmd/linux/bin64/../../src/phobos/std/range/package.d(1973):
std.range.take(R)(R input, size_t n) if (isInputRange!(Unqual!R))
--
More information about the Digitalmars-d-bugs
mailing list