fixes #11585
This commit is contained in:
parent
0ca71dd92c
commit
045eeab6b4
1 changed files with 3 additions and 2 deletions
|
|
@ -200,6 +200,7 @@ proc semConstructFields(c: PContext, recNode: PNode,
|
||||||
fieldsPresentInInitExpr(c, fields, initExpr)
|
fieldsPresentInInitExpr(c, fields, initExpr)
|
||||||
|
|
||||||
template checkMissingFields(branchNode: PNode) =
|
template checkMissingFields(branchNode: PNode) =
|
||||||
|
if branchNode != nil:
|
||||||
let fields = branchNode[branchNode.len - 1]
|
let fields = branchNode[branchNode.len - 1]
|
||||||
checkForMissingFields(c, fields, initExpr)
|
checkForMissingFields(c, fields, initExpr)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue