You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Vladimir Panteleev (@CyberShadow) reported this on 2014-02-19T15:43:46Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=12206
CC List
Description
template T() { void foo() {} } struct S { alias t = T!(); alias t this; } void main() { S s; s.foo(); }The text was updated successfully, but these errors were encountered: