[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)));

2016-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15819

Timothee Cour  changed:

   What|Removed |Added

 CC||timothee.co...@gmail.com
   Severity|enhancement |major

--


[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)));

2016-03-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15819

--- Comment #1 from Timothee Cour  ---
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)));

--