diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-04-26 19:00:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-26 19:00:25 +0800 |
commit | 407c0cb64a804e6f5ffa693ec0e79c9171393a29 (patch) | |
tree | 64e3ed5addd6794baf99acd8ebcfd60e06ccb954 /tests | |
parent | 4601bb0255335e2c1dfc78ebc33312933215ee95 (diff) | |
download | Nim-407c0cb64a804e6f5ffa693ec0e79c9171393a29.tar.gz |
fixes #23522; fixes pre-existing wrong type for iter in `liftIterSym` (#23538)
fixes #23522
Diffstat (limited to 'tests')
-rw-r--r-- | tests/js/t7109.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/js/t7109.nim b/tests/js/t7109.nim index 015d11d87..a1a3b718e 100644 --- a/tests/js/t7109.nim +++ b/tests/js/t7109.nim @@ -3,3 +3,6 @@ iterator iter*(): int {.closure.} = var x = iter doAssert x() == 3 + +let fIt = iterator(): int = yield 70 +doAssert fIt() == 70 |