[Issue 20389] __traits(isDisabled) with invalid template function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 13 18:10:52 UTC 2019


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

--- Comment #1 from John Hall <john.michael.hall at gmail.com> ---
It seems that this is related to not having a module defined...

When I add something like
module A;
to the top and then 
static assert(__traits(isDisabled, A.foo));
compiles without error when U is there and if U is removed then it gives the
error that T is not defined.

--


More information about the Digitalmars-d-bugs mailing list