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 macros
macroidentity(x: untyped) =result= x.copy()
result[6] =quotedo:
yield1echoresult.toStrLit
iteratordemo(): int {.identity.}
iteratordemo2(): int {.identity.} =discard# but this works as expected
Current Output
Hint: used config file '/playground/nim/config/nim.cfg' [Conf]
Hint: used config file '/playground/nim/config/config.nims' [Conf]
.....
iterator demo(): int =
yield 1
/usercode/in.nim(9, 1) Error: implementation of 'demo' expected
Example
Current Output
Expected Output
no error
Additional Information
https://play.nim-lang.org/#ix=2IQF
The text was updated successfully, but these errors were encountered: