[Issue 17336] Implicit type conversion of size_t.init to int causes standard type compatibility test to break

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Apr 20 12:57:48 PDT 2017


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

--- Comment #3 from hsteoh at quickfur.ath.cx ---
Oh, except that the latter check actually doesn't work, because the type of `(A
a, B b) => a + b` is a delegate, not A.  So it'd have to be the
nausea-inducing:

-------
static if (is(typeof((A a, B b) => a + b) : A delegate(A,B))) { ... }
-------

or something along those lines.  It quickly becomes completely ridiculous.

--


More information about the Digitalmars-d-bugs mailing list