Bug 18437 – Dlang's range section of the language tour produces an error

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-02-14T13:00:23Z
Last change time
2018-02-14T17:26:35Z
Assigned to
No Owner
Creator
Michael

Comments

Comment #0 by michael — 2018-02-14T13:00:23Z
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))
Comment #1 by greensunny12 — 2018-02-14T15:50:47Z
Comment #2 by michael — 2018-02-14T17:26:35Z
No problem! Well done on the quick fix!