mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Ensure that we only open existentials in an argument when the corresponding parameter's type is a generic parameter that is only used in covariant positions, because either invariant or contravariant uses mean that we won't be able to type-erase other uses of that parameter. This mirrors the requirement placed when opening existentials as a member of protocol type.
500 KiB
500 KiB