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 cps proc foo() {.cps: Continuation.} = const X = 10 var x: array[X, int]
got:
test.nim(3, 14) template/generic instantiation of `cps` from here test.nim(5, 16) Error: undeclared identifier: 'X'
The problem is that Nim did not inline X into array[X, int], which is carried over to the environment definition, where X doesn't exist.
X
array[X, int]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
got:
The problem is that Nim did not inline
X
intoarray[X, int]
, which is carried over to the environment definition, whereX
doesn't exist.The text was updated successfully, but these errors were encountered: