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
macro foo(arg: int): int = proc impl(): NimNode = arg impl() echo foo(11)
invalidly captures arg into impl
Nim Compiler Version 2.0.4 [Linux: amd64] Compiled at 2024-03-28 Copyright (c) 2006-2023 by Andreas Rumpf
git hash: b47747d active boot switches: -d:release
a.nim(5, 9) template/generic instantiation of `foo` from here a.nim(3, 3) Error: type mismatch: got 'NimNode' for 'nil' but expected 'int'
11
No response
after calling impl(), both impl().treeRepr and arg.treeRepr is NilLit
impl().treeRepr
arg.treeRepr
NilLit
The text was updated successfully, but these errors were encountered:
Related #3855, same issue #18352
Sorry, something went wrong.
No branches or pull requests
Description
invalidly captures arg into impl
Nim Version
Nim Compiler Version 2.0.4 [Linux: amd64]
Compiled at 2024-03-28
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: b47747d
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
after calling impl(), both
impl().treeRepr
andarg.treeRepr
isNilLit
The text was updated successfully, but these errors were encountered: