mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Break after tuples aren't equal (#58764)
This commit is contained in:
@@ -1234,6 +1234,7 @@ tryCastToTuple(
|
||||
for (unsigned i = 0; typesMatch && i != numElements; ++i) {
|
||||
if (srcTupleType->getElement(i).Type != destTupleType->getElement(i).Type) {
|
||||
typesMatch = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user