diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-01-14 16:20:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 16:20:48 +0100 |
commit | 675ca997fba448c2eb096f4bb12ba97125d79bcd (patch) | |
tree | 49fe3fbdaee8da905ab6bd7904835b09d3bf8303 /tests/js | |
parent | 8b00586488c9b5ef8935d2fbbca4e3dd1a1b1938 (diff) | |
download | Nim-675ca997fba448c2eb096f4bb12ba97125d79bcd.tar.gz |
fixes #9674 [backport] (#13143)
Diffstat (limited to 'tests/js')
-rw-r--r-- | tests/js/tcopying.nim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/js/tcopying.nim b/tests/js/tcopying.nim index 1f668be52..306d25090 100644 --- a/tests/js/tcopying.nim +++ b/tests/js/tcopying.nim @@ -6,6 +6,7 @@ discard """ true false 100 300 100 1 +1 ''' """ @@ -69,4 +70,11 @@ block: var nums = [1, 2] foo(nums) - echo nums[0] \ No newline at end of file + echo nums[0] + +proc bug9674 = + var b = @[1,2,3] + var a = move(b) + echo a[0] + +bug9674() |