Files
swift-mirror/test/ClangModules/objc_proxies.swift
Chris Lattner e4b6afb9ae Start moving the testsuite to the "_ = foo()" idiom for evaluating an
expression but ignoring its value.  This is the right canonical way to do
this.  NFC, just testsuite changes.



Swift SVN r28638
2015-05-15 20:15:54 +00:00

14 lines
391 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()
_ = x.constant
}