This commit is contained in:
ringabout
2026-03-23 17:59:57 +08:00
parent 406d687d71
commit b4df67e045

View File

@@ -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: