summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2023-06-05 11:53:40 +0300
committerGitHub <noreply@github.com>2023-06-05 10:53:40 +0200
commit0a212f97a5dd4d5dd1ea84f370bd27abe55a818e (patch)
treecc44556eb8f56b15e2b3d06b17aba9a4b6890bb8 /compiler/semstmts.nim
parentc7c3362cc818a660806d7247da51cd45d9660258 (diff)
downloadNim-0a212f97a5dd4d5dd1ea84f370bd27abe55a818e.tar.gz
properly disallow unresolved generic proc values (#22005)
* properly disallow unresolved generic proc values

* mirrors semoperand

* shallow efTypeAllowed, add back special case
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index 6cf9c6f7a..647d5d108 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -681,7 +681,6 @@ proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode =
         if hasEmpty(typ):
           localError(c.config, def.info, errCannotInferTypeOfTheLiteral % typ.kind.toHumanStr)
         elif typ.kind == tyProc and def.kind == nkSym and isGenericRoutine(def.sym.ast):
-          # tfUnresolved in typ.flags:
           let owner = typ.owner
           let err =
             # consistent error message with evaltempl/semMacroExpr