Cleanup leftovers of #12911(#12916)

This commit is contained in:
Clyybber 2019-12-17 17:58:04 +01:00 • committed by GitHub
commit 18e2ea787e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1157,7 +1157,6 @@ proc semProcTypeNode(c: PContext, n, genericParams: PNode,
# TODO: Disallow typed/untyped in procs in the compiler/stdlib # TODO: Disallow typed/untyped in procs in the compiler/stdlib
if kind == skProc and (typ.kind == tyTyped or typ.kind == tyUntyped): if kind == skProc and (typ.kind == tyTyped or typ.kind == tyUntyped):
if not isMagic(sym): 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: if hasDefault: