summary refs log tree commit diff stats
path: root/lib/pure/strscans.nim
diff options
context:
space:
mode:
authorVindaar <basti90@gmail.com>2018-09-10 16:40:28 +0200
committerVindaar <basti90@gmail.com>2018-09-17 19:34:40 +0200
commite9addb3ab2bdcc37581f1c053d9cfa62bf86d1c0 (patch)
tree9fd124ab1ae832dad76e1a511fc6bb5038798ac5 /lib/pure/strscans.nim
parent6dc6ea41468dc99c8826b03b512af8f9a46e660d (diff)
downloadNim-e9addb3ab2bdcc37581f1c053d9cfa62bf86d1c0.tar.gz
fix #8925 by using `getTypeInst` instead of `getType`
Diffstat (limited to 'lib/pure/strscans.nim')
-rw-r--r--lib/pure/strscans.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/strscans.nim b/lib/pure/strscans.nim
index 734317e67..77763ff43 100644
--- a/lib/pure/strscans.nim
+++ b/lib/pure/strscans.nim
@@ -317,8 +317,8 @@ macro scanf*(input: string; pattern: static[string]; results: varargs[typed]): b
 
   template at(s: string; i: int): char = (if i < s.len: s[i] else: '\0')
   template matchError() =
-    error("type mismatch between pattern '$" & pattern[p] & "' (position: " & $p & ") and " & repr(getType(results[i])) &
-          " var '" & repr(results[i]) & "'")
+    error("type mismatch between pattern '$" & pattern[p] & "' (position: " & $p &
+      ") and " & $getTypeInst(results[i]) & " var '" & repr(results[i]) & "'")
 
   var i = 0
   var p = 0