From e54546bcffd2224ed0c809992b5e47163c3bc5dc Mon Sep 17 00:00:00 2001 From: Miran Date: Fri, 10 May 2019 08:48:12 +0200 Subject: [PATCH] fixes #7569, all credit to @vincentvidal (#11213) --- compiler/semtypes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: