mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
23
tests/macros/t14227.nim
Normal file
23
tests/macros/t14227.nim
Normal file
@@ -0,0 +1,23 @@
|
||||
discard """
|
||||
action: "compile"
|
||||
"""
|
||||
import sugar
|
||||
|
||||
|
||||
block:
|
||||
let y = @[@[1, 2], @[2, 4, 6]]
|
||||
let x = collect(newSeq):
|
||||
for i in y:
|
||||
if i.len > 2:
|
||||
for j in i:
|
||||
j
|
||||
echo(x)
|
||||
|
||||
block:
|
||||
let y = @[@[1, 2], @[2, 4, 6]]
|
||||
let x = collect(newSeq):
|
||||
for i in y:
|
||||
for j in i:
|
||||
if i.len > 2:
|
||||
j
|
||||
echo(x)
|
||||
Reference in New Issue
Block a user