Files
swift-mirror/test/ModuleInterface/ambiguous-aliases-workaround-swiftinterface-objc.swift
Becca Royal-Gordon 1f008fb0d0 [ModuleInterface] Enable module selectors by default
And update tests to use them.

This commit depends on fixes in swiftlang/swift PRs #86905, #87129, and #87130.

Fixes rdar://169749886.
2026-02-20 00:35:23 -08:00

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?
){}
}