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
O =objectproc`=copy`(dst: var O, src: O) {.error.}
procfoo(): O {.cps: Continuation.} =result=O()
discardfoo()
got:
test.nim(8, 1) Error: '=copy' is not available for type <O>; requires a copy because it's not the last read of 'cps environment(c_436207858).result'; routine: foo
We need a version of () that can consume the result.
The text was updated successfully, but these errors were encountered:
got:
We need a version of
()
that can consume the result.The text was updated successfully, but these errors were encountered: