www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18437] New: Dlang's range section of the language tour

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 puremagic.com
          Reporter: michael 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))

--
Feb 14 2018