This commit is contained in:
Andreas Rumpf
2016-07-12 00:50:25 +02:00
parent bcb2365dec
commit 7a018007a4
2 changed files with 26 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
discard """
output: '''true'''
"""
# bug #4471
when true:
let s1 = "123"
var s2 = s1
s2.setLen(0)
# fails - s1.len == 0
echo s1.len == 3