Internal error when passing parameter proc inside .gcsafe closure #4927

Closed
endragor opened this Issue Oct 22, 2016 · 0 comments

Projects

None yet

1 participant

@endragor
Contributor

Sample:

proc invokeCb(cb: proc()) =
  cb()

proc doSomething(cb: proc()) =
  let closure = proc() {.gcsafe.} =
    invokeCb(cb)

When compiling this you get:

Error: internal error: (filename: compiler/sempass2.nim, line: 219)

Nim Git hash: 7cea3b6

@Araq Araq added a commit that closed this issue Oct 22, 2016
@Araq Araq fixes #4927 cdd69e9
@Araq Araq closed this in cdd69e9 Oct 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment