summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-03-14 10:18:20 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-03-14 10:18:20 +0100
commit4912300ca762f05681d3654631300173e3729920 (patch)
tree83cf1121f5a676689883a8fdf5c63165f0f5fd12 /compiler/semstmts.nim
parent3d534375c79d521c9fa747efceb09b5115b94010 (diff)
parente32f08d05b7e9a7f8cc121f02a3622bf26e29733 (diff)
downloadNim-4912300ca762f05681d3654631300173e3729920.tar.gz
Merge branch 'devel' into faster-nimsuggest
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index 6d0190257..069ece6a6 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -503,6 +503,8 @@ proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode =
         if hasEmpty(typ):
           localError(def.info, errCannotInferTypeOfTheLiteral,
                      ($typ.kind).substr(2).toLowerAscii)
+        elif typ.kind == tyProc and tfUnresolved in typ.flags:
+          localError(def.info, errProcHasNoConcreteType, def.renderTree)
     else:
       if symkind == skLet: localError(a.info, errLetNeedsInit)