From digitalmars.D.learn newsgroup: http://forum.dlang.org/thread/mailman.911.1337336339.24740.digitalmars-d-learn@puremagic.com struct S { } struct AS { alias S Alias; } struct Wrapper { AS as; } void main() { Wrapper w; static assert(is(typeof(w.as).Alias == S)); // fail static assert(is(AS.Alias == S)); // ok static assert(is(typeof(w.as) == AS)); // ok static assert(is(typeof(w.as).Alias == AS.Alias)); // fail }
https://github.com/D-Programming-Language/dmd/pull/957
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/76543ef60f3b871612ddc0c87999859f427ba6f9 fix Issue 8123 - alias declaration lookup is broken https://github.com/D-Programming-Language/dmd/commit/77422c31beae5db7d867c6611256482e07048f37 Merge pull request #957 from 9rnsr/fix8123 Issue 8123 - alias declaration lookup is broken