mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When @compatibility_alias is used with an ObjC generic class, this ends up importing as a generic typealias. PrintAsObjC previously didn’t handle declarations involving these types correctly; it would fail an assertion in asserts compilers, and potentially print an incorrect compatibility header in non-asserts compilers. This PR makes it so that PrintAsObjC can now correctly use generic typealiases imported from Objective-C modules. It is, of course, still not possible to declare a generic typealias in Swift that will be printed into the Objective-C header. Fixes rdar://67256866.
8 lines
249 B
Objective-C
8 lines
249 B
Objective-C
// This file is meant to be included with modules turned off, compiled against
|
|
// the fake clang-importer-sdk.
|
|
#import <Foundation.h>
|
|
#import <objc_generics.h>
|
|
|
|
@compatibility_alias StringCheese NSString;
|
|
@compatibility_alias GymClass GenericClass;
|