From 15f54728ef3ac639a96c917799b194418dff3874 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 1 May 2020 10:28:54 +0200 Subject: [PATCH] fixes a bug encountered when running 'nim check posix_haiku.nim' --- compiler/semtypes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]))