We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Nicholas Wilson (@thewilsonator) reported this on 2019-08-11T00:50:21Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=20119
Description
fails with "onlineapp.d(8): Error: cannot inline default argument this.pos"
The text was updated successfully, but these errors were encountered: