mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Way back in Swift 1 I was trying to draw a distinction between "overlays", separate libraries that added Swift content to an existing Objective-C framework, and "the Swift part of a mixed-source framework", even though they're implemented in almost exactly the same way. "Adapter module" was the term that covered both of those. In practice, however, no one knew what "adapter" meant. Bring an end to this confusion by just using "overlay" within the compiler even for the mixed-source framework case. No intended functionality change.
13 lines
305 B
Swift
13 lines
305 B
Swift
// RUN: %target-build-swift %s
|
|
// REQUIRES: executable_test
|
|
|
|
// FIXME: iOS does not have Cocoa.framework
|
|
// REQUIRES: OS=macosx
|
|
|
|
import Cocoa
|
|
|
|
// Make sure the ObjectiveC overlay gets imported, including ObjCSel.
|
|
func rdar14759044(obj: NSObject) -> Bool {
|
|
return obj.responds(to: "abc") // no-warning
|
|
}
|