[embedded] Allow casting to tuples

This commit is contained in:
Arnold Schwaighofer
2025-11-20 10:00:10 -08:00
parent 0197784625
commit 8beaad60bd
2 changed files with 16 additions and 2 deletions

View File

@@ -1010,8 +1010,7 @@ func isCastSupportedInEmbeddedSwift(from sourceType: Type,
return false
}
// Tuple?
if !destType.isStruct && !destType.isClass && !destType.isEnum {
if !destType.isStruct && !destType.isClass && !destType.isEnum && !destType.isTuple {
return false
}