fix #8925 by using getTypeInst instead of getType

This commit is contained in:
Vindaar
2018-09-10 16:40:28 +02:00
parent 6dc6ea4146
commit e9addb3ab2

View File

@@ -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