__traits(compiles, ...) with syntax errors
Ali Çehreli
acehreli at yahoo.com
Tue Jan 15 00:40:00 UTC 2019
On 01/14/2019 03:58 PM, H. S. Teoh wrote:
> the error is silent, and makes the compiler just move
> on to a different overload, leaving you scratching your head as to why
> it's not picking the "correct" overload.
I've recently opened the following bug which I believe is due to the
same underlying issue: A compilation error is silently skipped.
https://issues.dlang.org/show_bug.cgi?id=19541
> (Oh, and did I mention, almost all of the above requires you to edit the
> *callee* code in order to find out where the template instantiation
> went?
Yep. Similar to my choice of words in that bug report: "the user [...]
is now looking for unnecessary workarounds".
Ali
More information about the Digitalmars-d
mailing list