parent
632af8afad
commit
0869d2a477
4 changed files with 34 additions and 2 deletions
16
tests/stmt/tforloop_tuple_underscore.nim
Normal file
16
tests/stmt/tforloop_tuple_underscore.nim
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
discard """
|
||||
errormsg: "undeclared identifier: '_'"
|
||||
"""
|
||||
|
||||
iterator iter(): (int, int) =
|
||||
yield (1, 2)
|
||||
yield (3, 4)
|
||||
yield (1, 2)
|
||||
yield (3, 4)
|
||||
yield (1, 2)
|
||||
yield (3, 4)
|
||||
|
||||
|
||||
for (_, i) in iter():
|
||||
echo _
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue