You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import cps
type
A =object
B =objectprocwait(c: Continuation, x: A): Continuation {.cpsMagic.} =discardprocwait(c: Continuation, x: B): Continuation {.cpsMagic.} =discardprocfoo() {.cps: Continuation.} =wait(B())
foo()
Got
test.nim(12, 7) Error: type mismatch: got <B>
but expected one of:
proc wait(c: Continuation; x: A): Continuation
first type mismatch at position: 1
required type for c: Continuation
but expression 'B()' is of type: B
proc wait(c: Continuation; x: B): Continuation
first type mismatch at position: 1
required type for c: Continuation
but expression 'B()' is of type: B
proc wait(x: A)
first type mismatch at position: 1
required type for x: A
but expression 'B()' is of type: B
expression: wait(B())
Regression introduced by #258. This form of overloading is used heavily by nim-sys.
The text was updated successfully, but these errors were encountered:
Got
Regression introduced by #258. This form of overloading is used heavily by
nim-sys
.The text was updated successfully, but these errors were encountered: