summary refs log tree commit diff stats
path: root/compiler/msgs.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2015-04-13 23:49:41 +0300
committerZahary Karadjov <zahary@gmail.com>2015-04-13 23:49:41 +0300
commit1ebf1aaa80664bfb19ca09845d4258fe6dff25df (patch)
tree397c33c3c0c9c9b110d3bcd93819212c0075aa09 /compiler/msgs.nim
parent6c78f1a43d256c7d5e936d87946ae0edf35ddecb (diff)
downloadNim-1ebf1aaa80664bfb19ca09845d4258fe6dff25df.tar.gz
importing of C++ nested generics like std::vector<T>::iterator, using the apostrophe operator
Diffstat (limited to 'compiler/msgs.nim')
-rw-r--r--compiler/msgs.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim
index 3f5c4763e..778b839f3 100644
--- a/compiler/msgs.nim
+++ b/compiler/msgs.nim
@@ -827,6 +827,9 @@ proc localError*(info: TLineInfo, msg: TMsgKind, arg = "") =
 proc localError*(info: TLineInfo, arg: string) =
   liMessage(info, errGenerated, arg, doNothing)
 
+proc localError*(info: TLineInfo, format: string, params: openarray[string]) =
+  localError(info, format % params)
+
 proc message*(info: TLineInfo, msg: TMsgKind, arg = "") =
   liMessage(info, msg, arg, doNothing)