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
import std; int test(int a = 0) { return a; } alias cached = memoize!test; void main() { cached(0); // Works; cached(1); // Works; cached(); // Error } Error: function std.functional.memoize!(test).memoize(int _param_0) is not callable using argument types () onlineapp.d(11): missing argument for parameter #1: int _param_0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
trikkuz reported this on 2019-10-14T15:51:05Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=20300
Description
import std; int test(int a = 0) { return a; } alias cached = memoize!test; void main() { cached(0); // Works; cached(1); // Works; cached(); // Error } Error: function std.functional.memoize!(test).memoize(int _param_0) is not callable using argument types () onlineapp.d(11): missing argument for parameter #1: int _param_0The text was updated successfully, but these errors were encountered: