This compiles and produces the right output for me: type Bar = object baz: int {.this: self.} proc foo(self: Bar) = echo(baz) foo(Bar(baz: 42))
But I know Nim's syntax and don't have weird Unicode whitespace in my file. ;)
This compiles and produces the right output for me: type Bar = object baz: int {.this: self.} proc foo(self: Bar) = echo(baz) foo(Bar(baz: 42))
But I know Nim's syntax and don't have weird Unicode whitespace in my file. ;)