From 0f2c4be1299fc99aeea2011c57240c8cfabd83c3 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 12 Aug 2016 03:25:59 +0300 Subject: infer static parameters even when more complicated arithmetic is involved --- compiler/msgs.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/msgs.nim') 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.", -- cgit 1.4.1-2-gfad0