mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 11:54:11 +00:00
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user