www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16983] New: std.range.takeNone examples does not compile

https://issues.dlang.org/show_bug.cgi?id=16983

          Issue ID: 16983
           Summary: std.range.takeNone examples does not compile
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: chalucha gmail.com

auto range = takeNone!(int[])();
assert(range.length == 0);
assert(range.empty);

Does not compile with:
no property 'empty' for type 'int[]'


Tried with DMD v2.072.1

--
Dec 18 2016