summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2019-05-10 08:48:12 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-05-10 08:48:12 +0200
commite54546bcffd2224ed0c809992b5e47163c3bc5dc (patch)
treeb63fc2ace1025180989216bbd60c95bd64b43f1a /compiler
parenta4f531c243da957d6f089a2fc591d2b7f1087575 (diff)
downloadNim-e54546bcffd2224ed0c809992b5e47163c3bc5dc.tar.gz
fixes #7569, all credit to @vincentvidal (#11213)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semtypes.nim2
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: