mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Promote PrimaryAssociatedTypes2 feature to the baseline.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user