https://issues.dlang.org/show_bug.cgi?id=20905
--- Comment #2 from KytoDragon <[email protected]> --- 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` --
