This commit is contained in:
Marcus Eriksson 2018-05-17 23:18:09 +02:00 committed by flyx
parent e9658f22ec
commit 2328289dba
1 changed files with 3 additions and 1 deletions

View File

@ -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(