is(ElementType!(char[2]) == dchar - why?

Denis Feklushkin feklushkin.denis at gmail.com
Tue Dec 11 17:51:56 UTC 2018


import std.stdio;
import std.range.primitives;

void main()
{
     writeln(
         typeid(ElementType!(char[2]))
     );

     static assert(is(ElementType!(char[2]) == dchar)); // why?
}

?

https://run.dlang.io/is/Q74yHm


More information about the Digitalmars-d-learn mailing list