[Issue 20905] An alias inside a static if results in an undefined identifier in some situations
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 3 09:55:19 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20905
--- Comment #2 from KytoDragon <kytodragon at e.mail.de> ---
It turns out you don't even need an alias for it to fail:
struct Bar {
Foo foo;
}
static if (true) {
struct my_type {
int a;
}
}
struct Foo {
my_type index;
}
test.d(12): Error: undefined identifier `my_type`
--
More information about the Digitalmars-d-bugs
mailing list