diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index c772787331..4940c1b3e4 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -1873,7 +1873,7 @@ proc trackProc*(c: PContext; s: PSym, body: PNode) = track(t, body) if t.exc.len == 0 and not t.canRaiseDefect: - s.incl sfNeverRaises + s.flags.incl sfNeverRaises if s.kind != skMacro: let params = s.typ.n