* fixes #14983

* allow bootstrapping with 0.20

* added a test case for the new system.add with a sink parameter

* make npeg green again
This commit is contained in:
Andreas Rumpf 2020-09-25 08:49:21 +02:00 • committed by GitHub
commit e9fa486493
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 59 additions and 19 deletions

View file

@ -8,6 +8,8 @@ Hello
2
0
List
@["4", "5", "6", "", "", "a", ""]
@["", "", "a", ""]
'''
cmd: '''nim c --gc:arc $file'''
"""
@ -162,10 +164,21 @@ type
case kind: TagKind
of List:
values: seq[Tag]
of Compound:
of Compound:
compound: Table[string, Tag]
var a = Tag(kind: List)
var b = a
echo a.kind
var c = a
proc testAdd(i: int; yyy: openArray[string]) =
var x: seq[string]
x.add [$i, $(i+1), $(i+2)]
x.add yyy
echo x
var y = newSeq[string](4)
y[2] = "a"
testAdd(4, y)
echo y