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
parent a1a9d63d22
commit 169d3fda00
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)

View File

@@ -1,6 +1,5 @@
discard """
errormsg: "'untyped' is only allowed in templates and macros or magic procs"
disabled: true
"""
template something(op: proc (v: untyped): void): void =