mirror of https://github.com/status-im/NimYAML.git
Fixes #54
This commit is contained in:
parent
e9658f22ec
commit
2328289dba
|
@ -1057,7 +1057,9 @@ macro constructImplicitVariantObject(s, c, r, possibleTagIds: untyped,
|
|||
branch.add(infix(
|
||||
newCall("yamlTag", newCall("type", field)), "in", possibleTagIds))
|
||||
branchContent.add(newCall("constructChild", s, c, field))
|
||||
else: internalError("Too many children: " & $recCase[i][1].recListlen)
|
||||
else:
|
||||
block:
|
||||
internalError("Too many children: " & $recCase[i][1].recListlen)
|
||||
branch.add(branchContent)
|
||||
ifStmt.add(branch)
|
||||
let raiseStmt = newNimNode(nnkRaiseStmt).add(
|
||||
|
|
Loading…
Reference in New Issue