summary refs log tree commit diff stats
path: root/compiler/msgs.nim
diff options
context:
space:
mode:
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 9824f7c1c..151291ffb 100644
--- a/compiler/msgs.nim
+++ b/compiler/msgs.nim
@@ -282,6 +282,8 @@ proc toFileLineCol*(conf: ConfigRef; info: TLineInfo): string {.inline.} =
 
 proc `$`*(conf: ConfigRef; info: TLineInfo): string = toFileLineCol(conf, info)
 
+proc `$`*(info: TLineInfo): string {.error.} = discard
+
 proc `??`* (conf: ConfigRef; info: TLineInfo, filename: string): bool =
   # only for debugging purposes
   result = filename in toFilename(conf, info)