.this pragma doesn't work with .async procs #4358

edubart opened this Issue Jun 17, 2016 · 0 comments


None yet

2 participants

edubart commented Jun 17, 2016
import asyncdispatch

  Foo = object
    a, b: int

{.this: self.}
proc boo(self: Foo) {.async.} =
  echo a + b

var foo = Foo()
foo.a = 1
foo.b = 2
asyncCheck boo(foo)


lib/pure/asyncdispatch.nim(1809, 7) Hint: Processing boo as an async proc. [User]
hello.nim(9, 8) Error: internal error: expr(skField); unknown symbol
No stack traceback available
To create a stacktrace, rerun compilation with ./koch temp c

@Araq Araq added the Showstopper label Jul 12, 2016
@Araq Araq added a commit that closed this issue Jul 12, 2016
@Araq Araq fixes #4358 4f7a2e9
@Araq Araq closed this in 4f7a2e9 Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment