mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
16 lines
346 B
Swift
16 lines
346 B
Swift
// REQUIRES: objc_interop
|
|
// REQUIRES: OS=macosx
|
|
//
|
|
// RUN: %target-swift-frontend -typecheck -I %S/Inputs/NamedLazyMembers %s -verify
|
|
|
|
import NamedLazyMembers
|
|
|
|
func callViaAnyObject(ao: AnyObject, d: Double) {
|
|
ao.doSomething(d, celsius: d)
|
|
}
|
|
|
|
func callDirect(snt: SimilarlyNamedThings, d: Double) {
|
|
snt.doSomething(d, fahrenheit: d) {
|
|
}
|
|
}
|