* 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:
parent
68ec7a018b
commit
e9fa486493
2 changed files with 59 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue