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
iterator x(): int {.closure.} =
discard
proc y() {.async.} =
for z in x():
discard
waitFor y()
Current Output
/usercode/in.nim(7, 7) Error: internal error: expr: var not init x_17965377
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp c <file>', see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for details
Expected Output
Additional Information
Present since at least Nim 1.2.4, is present in latest (1.4.2). Instead of calling x, using var foo = x and then calling foo causes a codegen error.
Function
echo
outputs the wrong string.Example
Current Output
Expected Output
Additional Information
Present since at least Nim 1.2.4, is present in latest (1.4.2). Instead of calling x, using
var foo = x
and then calling foo causes a codegen error.The text was updated successfully, but these errors were encountered: