mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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; "
|
||||
|
||||
Reference in New Issue
Block a user