summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2019-12-17 17:58:04 +0100
committerGitHub <noreply@github.com>2019-12-17 17:58:04 +0100
commit18e2ea787e58a3462bb4d888ca99fe428c2f8d38 (patch)
tree40dce7339dd4c37c52d28170c18cc07f980ab5fb
parent83a736a34a1ebd4bc4d769429880ccb871403ba4 (diff)
downloadNim-18e2ea787e58a3462bb4d888ca99fe428c2f8d38.tar.gz
Cleanup leftovers of #12911(#12916)
-rw-r--r--compiler/semtypes.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index 4c88da077..4d749638d 100644
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -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]