mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
And update tests to use them. This commit depends on fixes in swiftlang/swift PRs #86905, #87129, and #87130. Fixes rdar://169749886.
20 lines
802 B
Swift
20 lines
802 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-emit-module-interface(%t/Library.swiftinterface) %s -alias-module-names-in-module-interface -module-name Library
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t/Library.swiftinterface) -module-name Library
|
|
// RUN: %FileCheck %s < %t/Library.swiftinterface
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
// CHECK: import Foundation
|
|
import Foundation
|
|
|
|
public class C: NSObject {
|
|
// CHECK: @objc override dynamic public func observeValue(forKeyPath keyPath: Swift::String?, of object: Any?, change: [Foundation::NSKeyValueChangeKey : Any]?, context: Swift::UnsafeMutableRawPointer?)
|
|
public override func observeValue(
|
|
forKeyPath keyPath: String?,
|
|
of object: Any?,
|
|
change: [NSKeyValueChangeKey : Any]?,
|
|
context: UnsafeMutableRawPointer?
|
|
){}
|
|
}
|