[Issue 19476] explicit mixin template function call results in recursive call instead
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 18 10:10:42 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19476
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> ---
A somewhat simpler example:
mixin template operators() {
int foo(int op = 1, T)(T rhs) {
return 1;
}
}
struct S {
mixin operators ops;
int foo(int op = 1, T)(T a) {
return ops.foo!1(a);
}
}
void main() {
S.init.foo(S.init);
}
--
More information about the Digitalmars-d-bugs
mailing list