diff options
author | Araq <rumpf_a@web.de> | 2014-08-21 09:59:57 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-08-21 09:59:57 +0200 |
commit | 5432b2b83aebb139324cf44d1ebd4a88a7c85e39 (patch) | |
tree | db2bae81bf553e490b836598c7422597e8770fe6 /tests/controlflow/tbreak.nim | |
parent | e5fd84c5591f5ed0a1e53c1509b25fd2a3f00cd5 (diff) | |
download | Nim-5432b2b83aebb139324cf44d1ebd4a88a7c85e39.tar.gz |
fixes recently introduced regression
Diffstat (limited to 'tests/controlflow/tbreak.nim')
-rw-r--r-- | tests/controlflow/tbreak.nim | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/controlflow/tbreak.nim b/tests/controlflow/tbreak.nim index 3d6bb25f0..7deab4caf 100644 --- a/tests/controlflow/tbreak.nim +++ b/tests/controlflow/tbreak.nim @@ -1,5 +1,9 @@ discard """ - output: '''10''' + output: '''10 +true true +true false +false true +false false''' """ var @@ -31,3 +35,10 @@ iterator permutations: int = for p in permutations(): break +# regression: +proc main = + for x in [true, false]: + for y in [true, false]: + echo x, " ", y + +main() |