mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 06:45:27 +00:00
closes #5379
This commit is contained in:
@@ -3,7 +3,8 @@ discard """
|
||||
5
|
||||
0
|
||||
5
|
||||
@[1, 2]'''
|
||||
@[1, 2]
|
||||
~'''
|
||||
"""
|
||||
|
||||
# bug #2476
|
||||
@@ -44,3 +45,10 @@ let a = View(data: new(seq[int]))
|
||||
a.data[] = @[1, 2]
|
||||
|
||||
echo a.data[]
|
||||
|
||||
# bug #5379
|
||||
var input = newSeq[ref string]()
|
||||
input.add(nil)
|
||||
input.add(new string)
|
||||
input[1][] = "~"
|
||||
echo input[1][]
|
||||
|
||||
Reference in New Issue
Block a user