diff options
author | metagn <metagngn@gmail.com> | 2023-06-05 11:53:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 10:53:40 +0200 |
commit | 0a212f97a5dd4d5dd1ea84f370bd27abe55a818e (patch) | |
tree | cc44556eb8f56b15e2b3d06b17aba9a4b6890bb8 /compiler/semstmts.nim | |
parent | c7c3362cc818a660806d7247da51cd45d9660258 (diff) | |
download | Nim-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.nim | 1 |
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 |