From 257965e105c219f2504a2d1d0952fc43efb9598c Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 19 Feb 2019 11:54:19 +0100 Subject: fixes 10697 [backport] --- tests/js/tbasics.nim | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'tests/js') 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() -- cgit 1.4.1-2-gfad0 el This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log blame commit diff stats
path: root/config/nim.cfg
blob: 7c99581396df984cad2770be022ab829c3ce9a08 (plain) (tree)
1
2
3
4
5
6
7
8
9
10