--- struct S { int data; int pos = 5; private: mixin template auxdispatch(alias F, alias indx) { auto auxdispatch(int x = indx) //Error here { return F(x); } } auto dispatcher(Func...)(int a) { alias Func0 = Func[0]; return Func0!()(a); } public: void outer() { void nested()(int a) { data += a; } mixin auxdispatch!(nested,pos); auxdispatch(); import std.stdio; writeln(data); } } void main() { S s; s.outer(); } --- fails with "onlineapp.d(8): Error: cannot inline default argument this.pos"
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19605 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB