ModuleInterface: Print existential any in swiftinterfaces since any is required for protocols with associated types in 5.7.

Resolves rdar://92976269
This commit is contained in:
Allan Shortlidge
2022-05-09 14:10:02 -07:00
parent 00423540f7
commit e0e748c35a
4 changed files with 40 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ public class OldSchool2: MP {
// CHECK: public struct UsesRP {
public struct UsesRP {
// CHECK: #if compiler(>=5.3) && $RethrowsProtocol
// CHECK-NEXT: public var value: FeatureTest.RP? {
// CHECK-NEXT: public var value: (any FeatureTest.RP)? {
// CHECK-NOT: #if compiler(>=5.3) && $RethrowsProtocol
// CHECK: get
public var value: RP? {