fixes #9674 [backport] (#13143)

This commit is contained in:
Andreas Rumpf 2020-01-14 16:20:48 +01:00 • committed by GitHub
commit 675ca997fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

View file

@ -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]
echo nums[0]
proc bug9674 =
var b = @[1,2,3]
var a = move(b)
echo a[0]
bug9674()