AST: Promote PrimaryAssociatedTypes2 feature to the baseline.

This commit is contained in:
Allan Shortlidge
2024-07-08 21:50:57 -07:00
parent b5acc6b07d
commit 6b9b7bcd83
5 changed files with 3 additions and 36 deletions

View File

@@ -8,14 +8,7 @@ public protocol HasPrimaryAssociatedTypes<T, U> {
associatedtype U : Equatable
}
// CHECK: #if compiler(>=5.3) && $PrimaryAssociatedTypes2
// CHECK-NEXT: public protocol HasPrimaryAssociatedTypes<T, U> {
// CHECK: public protocol HasPrimaryAssociatedTypes<T, U> {
// CHECK-NEXT: associatedtype T : Swift.Collection
// CHECK-NEXT: associatedtype U : Swift.Equatable where Self.U == Self.T.Element
// CHECK-NEXT: }
// CHECK-NEXT: #else
// CHECK-NEXT: public protocol HasPrimaryAssociatedTypes {
// CHECK-NEXT: associatedtype T : Swift.Collection
// CHECK-NEXT: associatedtype U : Swift.Equatable where Self.U == Self.T.Element
// CHECK-NEXT: }
// CHECK-NEXT: #endif