This commit is contained in:
parent
a1a9d63d22
commit
169d3fda00
2 changed files with 1 additions and 1 deletions
|
|
@ -1257,6 +1257,7 @@ proc newProcType(c: PContext; info: TLineInfo; prev: PType = nil): PType =
|
||||||
result.n.add newNodeI(nkEffectList, info)
|
result.n.add newNodeI(nkEffectList, info)
|
||||||
|
|
||||||
proc isMagic(sym: PSym): bool =
|
proc isMagic(sym: PSym): bool =
|
||||||
|
if sym.ast == nil: return false
|
||||||
let nPragmas = sym.ast[pragmasPos]
|
let nPragmas = sym.ast[pragmasPos]
|
||||||
return hasPragma(nPragmas, wMagic)
|
return hasPragma(nPragmas, wMagic)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
errormsg: "'untyped' is only allowed in templates and macros or magic procs"
|
errormsg: "'untyped' is only allowed in templates and macros or magic procs"
|
||||||
disabled: true
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
template something(op: proc (v: untyped): void): void =
|
template something(op: proc (v: untyped): void): void =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue