diff options
Diffstat (limited to 'compiler/semobjconstr.nim')
-rw-r--r-- | compiler/semobjconstr.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semobjconstr.nim b/compiler/semobjconstr.nim index 9f342e3b9..b71198fd8 100644 --- a/compiler/semobjconstr.nim +++ b/compiler/semobjconstr.nim @@ -339,7 +339,7 @@ proc semConstructFields(c: PContext, recNode: PNode, result = initPartial if discriminatorVal.kind == nkIntLit: # When the discriminator is a compile-time value, we also know - # which brach will be selected: + # which branch will be selected: let matchedBranch = recNode.pickCaseBranch discriminatorVal if matchedBranch != nil: checkMissingFields matchedBranch else: |