get_type.v

This commit is contained in:
Alexander Medvednikov 2019-12-05 18:47:29 +03:00
parent 0a38b307cd
commit cb46bf314e
4 changed files with 80 additions and 34 deletions

View file

@ -715,7 +715,7 @@ fn (p mut Parser) check_types2(got_, expected_ string, throw bool) bool {
return false
}
else {
p.error('expected type `$expected`, but got `$got`')
p.error('cannot convert `$got` to `$expected`')
}
}
return true