fix #8925 by using getTypeInst instead of getType
This commit is contained in:
parent
6dc6ea4146
commit
e9addb3ab2
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue