diff options
Diffstat (limited to 'src/validator.cc')
-rw-r--r-- | src/validator.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/validator.cc b/src/validator.cc index 7498ca40..c330b276 100644 --- a/src/validator.cc +++ b/src/validator.cc @@ -179,9 +179,9 @@ void ScriptValidator::CheckTypeIndex(const Location* loc, Index index, const char* index_kind) { if (Failed(TypeChecker::CheckType(actual, expected))) { - PrintError( - loc, "type mismatch for %s %" PRIindex " of %s. got %s, expected %s", - index_kind, index, desc, GetTypeName(actual), GetTypeName(expected)); + PrintError(loc, + "type mismatch for %s %" PRIindex " of %s. got %s, expected %s", + index_kind, index, desc, actual.GetName(), expected.GetName()); } } |