summary refs log tree commit diff stats
path: root/compiler/msgs.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2016-08-12 03:25:59 +0300
committerZahary Karadjov <zahary@gmail.com>2017-03-24 16:58:15 +0200
commit0f2c4be1299fc99aeea2011c57240c8cfabd83c3 (patch)
tree64fa8e58c3c9745b54c127f8fdc3b897ff3896a0 /compiler/msgs.nim
parent0b0a3e5f203f6b21f3790a6cd50ceeaa8786badc (diff)
downloadNim-0f2c4be1299fc99aeea2011c57240c8cfabd83c3.tar.gz
infer static parameters even when more complicated arithmetic is involved
Diffstat (limited to 'compiler/msgs.nim')
-rw-r--r--compiler/msgs.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim
index 2db3646b5..eb9986114 100644
--- a/compiler/msgs.nim
+++ b/compiler/msgs.nim
@@ -109,6 +109,7 @@ type
     errXCannotBeClosure, errXMustBeCompileTime,
     errCannotInferTypeOfTheLiteral,
     errCannotInferReturnType,
+    errCannotInferStaticParam,
     errGenericLambdaNotAllowed,
     errProcHasNoConcreteType,
     errCompilerDoesntSupportTarget,
@@ -373,6 +374,7 @@ const
     errXMustBeCompileTime: "'$1' can only be used in compile-time context",
     errCannotInferTypeOfTheLiteral: "cannot infer the type of the $1",
     errCannotInferReturnType: "cannot infer the return type of the proc",
+    errCannotInferStaticParam: "cannot infer the value of the static param `$1`",
     errGenericLambdaNotAllowed: "A nested proc can have generic parameters only when " &
                                 "it is used as an operand to another routine and the types " &
                                 "of the generic paramers can be inferred from the expected signature.",