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
struct S {
mixin foo!() bar;
}
template foo() {
int n;
alias n this;
}
unittest {
int n = S.init;
}
The alias this is inside a named member of S, and it is counterintuitive that it affects S.
The text was updated successfully, but these errors were encountered:
Simen Kjaeraas reported this on 2018-03-10T16:59:36Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=18588
Description
struct S { mixin foo!() bar; } template foo() { int n; alias n this; } unittest { int n = S.init; } The alias this is inside a named member of S, and it is counterintuitive that it affects S.The text was updated successfully, but these errors were encountered: