[CS] Upgrade tuple label mismatch warning to error for future lang mode

I missed upgrading this to an error for Swift 6 mode, let's upgrade it
to an error for a future language mode. It's important we reject these
cases since we're otherwise allowing subtyping to be a weaker constraint
than conversion.
This commit is contained in:
Hamish Knight
2025-10-29 15:14:23 +00:00
parent 1f9300319b
commit 1781faba1a
6 changed files with 43 additions and 28 deletions

View File

@@ -1586,9 +1586,9 @@ WARNING(coercion_may_fail_warning,none,
"coercion from %0 to %1 may fail; use 'as?' or 'as!' instead",
(Type, Type))
WARNING(tuple_label_mismatch_warning,none,
"tuple conversion from %0 to %1 mismatches labels",
(Type, Type))
ERROR(tuple_label_mismatch,none,
"tuple conversion from %0 to %1 mismatches labels",
(Type, Type))
ERROR(missing_explicit_conversion,none,
"%0 is not implicitly convertible to %1; "