mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Allow a rethrows function to call a typed-throws function that has a specific form that looks like it only rethrows, i.e., it is generic over its thrown error type and carries the thrown error type from its closure parameters to itself. This is a compatibility carve-out to allow existing rethrows functions to move to typed throws without breaking their clients. Note that it is possible to write a sneaky function that passes this check but throws when it shouldn't, so this compatibility carve-out is phased out with the upcoming feature FullTypedThrows.