template T() { void foo() {} } struct S { alias t = T!(); alias t this; } void main() { S s; s.foo(); }
Still there in DMD master. The error message is: xx.d(15): Error: expression has no value
This is a weird case. The alias is part of the struct, but the actual function is not. I would say that the correct behavior is the current one: Error : no property foo for type S. Note that writing s.t.foo works. In my opinion, this is the real bug.
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18776 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB