From b4df67e04586d7908c3c6a7db8fbece39aa7f96b Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Mon, 23 Mar 2026 17:59:57 +0800 Subject: [PATCH] progress --- compiler/semstmts.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 484dec5db3..285b84cfc7 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -2552,7 +2552,7 @@ proc semProcAux(c: PContext, n: PNode, kind: TSymKind, if not hasProto: implicitPragmas(c, s, n.info, validPragmas) - if sfError in s.flags and sfExportc in s.flags: + if {sfError, sfExportc} * s.flags == {sfError, sfExportc}: localError(c.config, n.info, "{.error.} and {.exportc.} pragmas are incompatible") if n[pragmasPos].kind != nkEmpty and sfBorrow notin s.flags: