mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Allow Converting Pack Types to Tuples
Insert an implicit conversion from pack types to tuples with equivalent parallel structure. That means 1) The tuple must have the same arity 2) The tuple may not have any argument labels 3) The tuple may not have any variadic or inout components 4) The tuple must have the same element types as the pack
This commit is contained in:
@@ -5273,6 +5273,7 @@ ConstraintSystem::isConversionEphemeral(ConversionRestrictionKind conversion,
|
||||
case ConversionRestrictionKind::ObjCTollFreeBridgeToCF:
|
||||
case ConversionRestrictionKind::CGFloatToDouble:
|
||||
case ConversionRestrictionKind::DoubleToCGFloat:
|
||||
case ConversionRestrictionKind::ReifyPackToType:
|
||||
// @_nonEphemeral has no effect on these conversions, so treat them as all
|
||||
// being non-ephemeral in order to allow their passing to an @_nonEphemeral
|
||||
// parameter.
|
||||
|
||||
Reference in New Issue
Block a user