summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-09-18 09:37:39 +0200
committerGitHub <noreply@github.com>2018-09-18 09:37:39 +0200
commit597acad507f1acc8a50e9e98d83328a4c4dd8bda (patch)
tree4f8a554bd4d26e42788374fdc314930bc01c2983 /lib
parentc661f8e1be24a4d3d4b9cf8a544e2a3cdca87593 (diff)
parent72a65c43a738b7d99d8e345b169c37b3de96014d (diff)
downloadNim-597acad507f1acc8a50e9e98d83328a4c4dd8bda.tar.gz
Merge pull request #8937 from Vindaar/fixes-8925
fix #8925 by using `getTypeInst` instead of `getType`
Diffstat (limited to 'lib')
-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