Files
swift-mirror/test/ClangImporter/Inputs/custom-modules/ImageInitializers.h
Robert Widmann a1397a8c60 [Sema] Don't Emit @objc Fixits Into Extant Modules
Overlays are specifically allowed to do magic things that regular Swift
modules are not. In this case, the UIImage and NSImage overlays have
extensions that allow them to conform to `_ExpressibleByImageLiteral`.
This, unfortunately, means that subclassing these classes with the
overlays present is impossible as one must override the required
initializers, but one cannot override these initializers since they are
declared in an extension.

While we cannot correct the overlays without breaking ABI, we can at
least make sure we don't attempt to stick @objc into them when users
have a go at subclassing these classes.

Resolves rdar://59610201
2020-03-02 16:27:06 -08:00

8 lines
102 B
Objective-C

@import Foundation;
@interface Image: NSObject
+ (instancetype)imageNamed:(NSString *)string;
@end