[Issue 11169] __traits(isAbstractClass) prematurely sets a class to be abstract
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Apr 23 08:46:59 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=11169
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull, rejects-valid
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> ---
https://github.com/dlang/dmd/pull/5695
After my PR, the use of __traits(isAbstractClass) at the condition of static if
in class member will be rejected, because of the unresolved forward reference.
For example:
class C
{
static if (__traits(isAbstractClass, C))
{
abstract void foo();
}
}
--
More information about the Digitalmars-d-bugs
mailing list