fix #18136 tests/proc/t17157.nim now gives SIGSEGV instead of error (#20555)

This commit is contained in:
Bung 2022-10-13 12:39:43 +08:00 • committed by GitHub
commit 169d3fda00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View file

@ -1257,6 +1257,7 @@ proc newProcType(c: PContext; info: TLineInfo; prev: PType = nil): PType =
result.n.add newNodeI(nkEffectList, info)
proc isMagic(sym: PSym): bool =
if sym.ast == nil: return false
let nPragmas = sym.ast[pragmasPos]
return hasPragma(nPragmas, wMagic)