[Issue 13734] Weird linker error?
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Nov 14 16:34:12 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13734
--- Comment #1 from Daniel Čejchan <czdanol at gmail.com> ---
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
--
More information about the Digitalmars-d-bugs
mailing list