Re: Why does this not pass

2021-02-23 Thread Imperatorn via Digitalmars-d-learn
On Tuesday, 23 February 2021 at 09:21:44 UTC, Imperatorn wrote: Why does all these pass: static assert(is(ElementEncodingType!(char[]) == char)); static assert(is(ElementEncodingType!(wstring) == immutable(wchar))); static assert(is(ElementEncodingType!(byte[]) == byte)); static

Why does this not pass

2021-02-23 Thread Imperatorn via Digitalmars-d-learn
Why does all these pass: static assert(is(ElementEncodingType!(char[]) == char)); static assert(is(ElementEncodingType!(wstring) == immutable(wchar))); static assert(is(ElementEncodingType!(byte[]) == byte)); static assert(is(ElementEncodingType!(ubyte[]) == ubyte)); auto ra