Files
swift-mirror/test/Interpreter/SDK/Cocoa_transitive.swift
Jordan Rose 517f5d6b6a [ClangImporter] Retire the term "adapter" in favor of "overlay" (#24427)
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.
2019-05-03 11:11:58 -07:00

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
}