https://issues.dlang.org/show_bug.cgi?id=15819
Issue ID: 15819 Summary: Error: cannot resolve type for temp.array(Range)(Range r) if (isIterable!Range && !isNarrowString!Range && !isInfinite!Range) //static assert(is(typeof(temp.array))); Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: timothee.co...@gmail.com not sure whether it's a dmd or phobos error (or if i missed something) but: void fun(){ // ... alias Range = typeof(temp); static assert(isInputRange!Range); static assert(isIterable!Range && !isNarrowString!Range && !isInfinite!Range); static assert(is(typeof(temp.array))); // CT error } error: Error: cannot resolve type for temp.array(Range)(Range r) if (isIterable!Range && !isNarrowString!Range && !isInfinite!Range) //static assert(is(typeof(temp.array))); single file code here: https://github.com/timotheecour/dtools/blob/master/dtools/util/emit.d using: DMD64 D Compiler v2.070 (same with git head) --