mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We want to be able to use these typealiases both as existential types and as generic constraints, so unwrap the ExistentialType explicitly before setting the underlying type of the typealias. This might not be the best long-term approach, so I added a FIXME comment with my thoughts there. Fixes rdar://problem/88208893.
13 lines
167 B
Objective-C
13 lines
167 B
Objective-C
@import Foundation;
|
|
|
|
@protocol P
|
|
@end
|
|
|
|
@protocol Q
|
|
@end
|
|
|
|
typedef id<P, Q> PAndQ;
|
|
|
|
@interface PAndQProcessor : NSObject
|
|
- (void) takesPAndQExistential: (PAndQ)arg;
|
|
@end |