https://issues.dlang.org/show_bug.cgi?id=15168

--- Comment #5 from Martin Nowak <[email protected]> ---
cat > bug.d << CODE
import std.typecons;

struct S { string val; alias val this; }
pragma(msg, ReplaceType!(int, int, S));
static assert(is(ReplaceType!(int, int, S) == S));
CODE

dmd -c bug
----
string
bug2.d(5): Error: static assert  (is(string == S)) is false
----

--

Reply via email to