digitalmars.D.bugs - [Issue 14910] New: Take!R does not offer length for char[]
- via Digitalmars-d-bugs (22/22) Aug 12 2015 https://issues.dlang.org/show_bug.cgi?id=14910
https://issues.dlang.org/show_bug.cgi?id=14910 Issue ID: 14910 Summary: Take!R does not offer length for char[] Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: schneider.cedric gmx.de unittest { char[] chars = ['h', 'e', 'l', 'l', 'o']; assert(chars.take(2).length == 2); } This unittest fails to compile, complaining that Take!char[] does not have a length, despite Take!R claiming to offer a length property if the input range does. --
Aug 12 2015