mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
If there is no NSObject protocol, skip a special case when importing types like `NSObject <NSCopying>` that converts them to `id <NSObject, NSCopying>`. Fix rdar://problem/34597302
10 lines
266 B
Swift
10 lines
266 B
Swift
/// Don't crash when there's no NSObject protocol.
|
|
/// rdar://problem/34597302
|
|
|
|
// RUN: %target-swift-frontend -typecheck %s -import-objc-header %S/Inputs/no-nsobject-protocol.h -enable-objc-interop
|
|
|
|
var a = Bar()!
|
|
var b = a.barFunc()!;
|
|
b.nsobjectFunc()
|
|
b.fooFunc()
|