diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index a069fba60..275ad8a07 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -723,7 +723,7 @@ proc semRecordNodeAux(c: PContext, n: PNode, check: var IntSet, pos: var int, checkSonsLen(it, 2, c.config) if c.inGenericContext == 0: var e = semConstBoolExpr(c, it[0]) - if e.kind != nkIntLit: internalError(c.config, e.info, "semRecordNodeAux") + if e.kind != nkIntLit: discard "don't report followup error" elif e.intVal != 0 and branch == nil: branch = it[1] else: it[0] = forceBool(c, semExprWithType(c, it[0]))