[Issue 16983] New: std.range.takeNone examples does not compile

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Dec 18 13:34:39 PST 2016


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 at puremagic.com
          Reporter: chalucha at 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

--


More information about the Digitalmars-d-bugs mailing list