Files
swift-mirror/test/ClangImporter/objc_proxies.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

14 lines
398 B
Swift

// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -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()
_ = x!.constant
}