https://issues.dlang.org/show_bug.cgi?id=19327
--- Comment #1 from Basile-z <[email protected]> --- much simplified: --- struct T { static int target() {return 0;} } struct S { T t; T aliasGet(){return t;} alias aliasGet this; } struct Use { // S.aliasGet().target(): // ---------------------- // and T static members are tried static void ok() { auto v = S.target(); } // S.aliasGet(this).target(): // ---------------------- // T static members are not tried because error happens before void bug() { auto v = S.target(); } } --- --
