[Issue 15819] Error: cannot resolve type for temp.array(Range)(Range r) if (isIterable!Range && !isNarrowString!Range && !isInfinite!Range) //static assert(is(typeof(temp.array)));
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Mar 21 22:30:37 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=15819
--- Comment #1 from Timothee Cour <timothee.cour2 at gmail.com> ---
update:
the following passes, ie array(temp) is ok but temp.array is not; why is that?
(again, self contained single file test example here:
https://github.com/timotheecour/dtools/blob/master/dtools/util/emit.d
)
// ...
import std.array:array;
static assert(is(typeof(array(temp))));
static assert(!is(typeof(temp.array)));
--
More information about the Digitalmars-d-bugs
mailing list