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
Compiler won't allow to discard a proc returned from another proc
proc foo: (proc: int) = proc bar: int = 1 return bar discard foo()
prog.nim(5, 1) Error: illegal discard proc, did you mean: foo()()
No error. This used to compile.
>nim -v Nim Compiler Version 0.19.9 [Linux: i386] Compiled at 2018-11-20 Copyright (c) 2006-2018 by Andreas Rumpf git hash: e8bec614131957e7bd8b9f377ba4a08aa762309c active boot switches: -d:release
The text was updated successfully, but these errors were encountered:
duplicate of #9726
Sorry, something went wrong.
No branches or pull requests
Compiler won't allow to discard a proc returned from another proc
Example
Current Output
prog.nim(5, 1) Error: illegal discard proc, did you mean: foo()()
Expected Output
No error. This used to compile.
Additional Information
The text was updated successfully, but these errors were encountered: