www.digitalmars.com         C & C++   DMDScript  

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


          Issue ID: 18437
           Summary: Dlang's range section of the language tour produces an
           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:

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:
std.range.take(R)(R input, size_t n) if (isInputRange!(Unqual!R))

Feb 14 2018