Update to latest Preserves API
This commit is contained in:
parent
ac81221faa
commit
53278d8614
|
@ -212,11 +212,11 @@ proc instantiate(t: Template; bindings: Bindings): Assertion =
|
|||
for i, tt in t.tcompound.rec.fields:
|
||||
result[i] = instantiate(tt, bindings)
|
||||
of TCompoundKind.arr:
|
||||
result = initSequence[Ref](t.tcompound.arr.items.len)
|
||||
result = initSequence(t.tcompound.arr.items.len, Ref)
|
||||
for i, tt in t.tcompound.arr.items:
|
||||
result[i] = instantiate(tt, bindings)
|
||||
of TCompoundKind.dict:
|
||||
result = initDictionary[Ref]()
|
||||
result = initDictionary(Ref)
|
||||
for key, tt in t.tcompound.dict.entries:
|
||||
result[key] = instantiate(tt, bindings)
|
||||
|
||||
|
|
Loading…
Reference in New Issue