fixes #5974
This commit is contained in:
parent
6f29041f09
commit
ac63a99892
2 changed files with 20 additions and 5 deletions
|
|
@ -2,7 +2,8 @@ discard """
|
|||
output: '''0
|
||||
5
|
||||
0
|
||||
5'''
|
||||
5
|
||||
@[1, 2]'''
|
||||
"""
|
||||
|
||||
# bug #2476
|
||||
|
|
@ -33,3 +34,13 @@ proc main =
|
|||
echo t.m
|
||||
|
||||
main()
|
||||
|
||||
# bug #5974
|
||||
type
|
||||
View* = object
|
||||
data: ref seq[int]
|
||||
|
||||
let a = View(data: new(seq[int]))
|
||||
a.data[] = @[1, 2]
|
||||
|
||||
echo a.data[]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue