mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
414 B
Swift
16 lines
414 B
Swift
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -enable-objc-interop -print-indexed-symbols -source-filename %s | %FileCheck %s
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
@objc
|
|
class Foo: NSObject {
|
|
// CHECK-DAG: constructor(internal)/Swift | init(object:)
|
|
init(object: Any?) {}
|
|
}
|
|
|
|
extension Foo {
|
|
// CHECK-DAG: static-property(internal)/Swift | boom
|
|
static let boom = Foo(object: self)
|
|
}
|