[Diagnostics] Use a generic "tuple type not convertible" error message

when there is no contextual type.
This commit is contained in:
Holly Borla
2019-12-09 11:25:32 -08:00
parent 50abedd45c
commit 94e9fd1d67
3 changed files with 14 additions and 7 deletions

View File

@@ -955,6 +955,8 @@ ERROR(types_not_convertible_use_bool_value,none,
ERROR(tuple_types_not_convertible_nelts,none,
"%0 is not convertible to %1, "
"tuples have a different number of elements", (Type, Type))
ERROR(tuple_types_not_convertible,none,
"tuple type %0 is not convertible to tuple type %1", (Type, Type))
ERROR(invalid_force_unwrap,none,
"cannot force unwrap value of non-optional type %0", (Type))