diff options
author | Araq <rumpf_a@web.de> | 2019-02-19 11:54:19 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-02-19 11:56:14 +0100 |
commit | 257965e105c219f2504a2d1d0952fc43efb9598c (patch) | |
tree | 0a5dd6af474c0f9a0a925ee4c85652a9c737df58 /tests/js | |
parent | 315d438677eed1b7904223cfe23703b3e289fbef (diff) | |
download | Nim-257965e105c219f2504a2d1d0952fc43efb9598c.tar.gz |
fixes 10697 [backport]
Diffstat (limited to 'tests/js')
-rw-r--r-- | tests/js/tbasics.nim | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/js/tbasics.nim b/tests/js/tbasics.nim index 0c8d33e7f..33616776f 100644 --- a/tests/js/tbasics.nim +++ b/tests/js/tbasics.nim @@ -2,7 +2,8 @@ discard """ output: '''ABCDC 1 14 -ok''' +ok +1''' """ type @@ -34,4 +35,14 @@ when true: a.setLen(0) - echo "ok" \ No newline at end of file + echo "ok" + +# bug #10697 +proc test2 = + var val = uint16(0) + var i = 0 + if i < 2: + val += uint16(1) + echo int(val) + +test2() |