diff options
author | Miran <narimiran@disroot.org> | 2019-05-10 08:48:12 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-05-10 08:48:12 +0200 |
commit | e54546bcffd2224ed0c809992b5e47163c3bc5dc (patch) | |
tree | b63fc2ace1025180989216bbd60c95bd64b43f1a /compiler | |
parent | a4f531c243da957d6f089a2fc591d2b7f1087575 (diff) | |
download | Nim-e54546bcffd2224ed0c809992b5e47163c3bc5dc.tar.gz |
fixes #7569, all credit to @vincentvidal (#11213)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semtypes.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index f37e8263e..28fc12a21 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -738,7 +738,7 @@ proc addInheritedFieldsAux(c: PContext, check: var IntSet, pos: var int, of nkOfBranch, nkElse: addInheritedFieldsAux(c, check, pos, lastSon(n.sons[i])) else: internalError(c.config, n.info, "addInheritedFieldsAux(record case branch)") - of nkRecList: + of nkRecList, nkRecWhen, nkElifBranch, nkElse: for i in 0 ..< sonsLen(n): addInheritedFieldsAux(c, check, pos, n.sons[i]) of nkSym: |