mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This is required to correctly use the mock SDK when the SDK overlay is built and tested separately. (Otherwise, the mock SDK might not get used, because the overlay SDK options would expand from the %-substitution, appear first on the command line, and shadow the mock SDK in the search path). Swift SVN r25185
14 lines
395 B
Swift
14 lines
395 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse -I %S/Inputs/custom-modules %s -verify
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import AppKit
|
|
|
|
func testAnimatorProxy(constraint:NSLayoutConstraint) {
|
|
// Rely on warning on 'AnyObject' as an inferred type to check
|
|
// if the result of 'animator' is being treated as instancetype.
|
|
let x = constraint.animator()
|
|
let y = x.constant
|
|
}
|
|
|