diff options
author | Zahary Karadjov <zahary@gmail.com> | 2014-02-25 00:49:24 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2014-02-25 01:36:08 +0200 |
commit | e6b0b7ecc9bb81d94eec19fbc4fc62e104f59253 (patch) | |
tree | 82d1702adc9845032dfd74a14cd8599aba188ec7 /compiler/msgs.nim | |
parent | 1024e7a3dbe2686809d3388731e0700ffdab4932 (diff) | |
download | Nim-e6b0b7ecc9bb81d94eec19fbc4fc62e104f59253.tar.gz |
some fixes for static params usage in macros
Diffstat (limited to 'compiler/msgs.nim')
-rw-r--r-- | compiler/msgs.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim index 0140d1ac4..b44ca2ff0 100644 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -94,6 +94,7 @@ type errNewSectionExpected, errWhitespaceExpected, errXisNoValidIndexFile, errCannotRenderX, errVarVarTypeNotAllowed, errInstantiateXExplicitely, errOnlyACallOpCanBeDelegator, errUsingNoSymbol, + errMacroBodyDependsOnGenericTypes, errDestructorNotGenericEnough, errXExpectsTwoArguments, @@ -326,6 +327,8 @@ const errInstantiateXExplicitely: "instantiate '$1' explicitely", errOnlyACallOpCanBeDelegator: "only a call operator can be a delegator", errUsingNoSymbol: "'$1' is not a variable, constant or a proc name", + errMacroBodyDependsOnGenericTypes: "the macro body cannot be compiled, " & + "because the parameter '$1' has a generic type", errDestructorNotGenericEnough: "Destructor signarue is too specific. " & "A destructor must be associated will all instantiations of a generic type", errXExpectsTwoArguments: "\'$1\' expects two arguments", |