mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
Cleanup leftovers of #12911(#12916)
This commit is contained in:
@@ -1157,8 +1157,7 @@ proc semProcTypeNode(c: PContext, n, genericParams: PNode,
|
||||
# TODO: Disallow typed/untyped in procs in the compiler/stdlib
|
||||
if kind == skProc and (typ.kind == tyTyped or typ.kind == tyUntyped):
|
||||
if not isMagic(sym):
|
||||
if (owner.kind != skModule or (owner.owner.name.s != "stdlib")):
|
||||
localError(c.config, a[^2].info, "'" & typ.sym.name.s & "' is only allowed in templates and macros or magic procs")
|
||||
localError(c.config, a[^2].info, "'" & typ.sym.name.s & "' is only allowed in templates and macros or magic procs")
|
||||
|
||||
if hasDefault:
|
||||
def = a[^1]
|
||||
|
||||
Reference in New Issue
Block a user