https://issues.dlang.org/show_bug.cgi?id=13734
--- Comment #1 from Daniel Čejchan <[email protected]> --- Sorry, this seems to be the minimal test case: module x; struct A( T ) { void a() {} } class B {} class C { enum a = { static if( __traits( compiles, __traits( getMember, typeof( this ), "b" ) ) ) {} return 0; }; // Surprisingly, this has to be after that enum A!B b; void asd() { b.a(); } } void main() { } Oh and yeah, test via rdmd or under RELEASE --
