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
Here is a working non-static version and the static version.
With static I get undeclared identifier
undeclared identifier
type Bar = object baz: int {.this: self.} proc foo(self: Bar) = echo(baz) foo(Bar(baz: 1)) ############################################ type Bar2[N: static[int]] = object baz2: int {.this: self.} proc foo2[N: static[int]](self: Bar2[N]) = echo(baz2) # Undeclared identifier baz2 foo2(Bar2[10](baz2: 1))
The text was updated successfully, but these errors were encountered:
Mentions that {.this:self.} does not work with static: nim-lang/Nim#7618
0b44cc2
The problem is more general. this: self doesn't work in generic code.
this: self
Sorry, something went wrong.
Duplicate of #5053
No branches or pull requests
Here is a working non-static version and the static version.
With static I get
undeclared identifier
The text was updated successfully, but these errors were encountered: