Files
swift-mirror/test/decl/ext/extension-inheritance-conformance-objc.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

19 lines
329 B
Swift

// RUN: %target-swift-frontend -import-objc-header %S/Inputs/extension-inheritance-conformance-objc.h -typecheck -verify %s
// REQUIRES: objc_interop
extension View {}
protocol Foo {}
extension Foo {
func bar() -> Self { return self }
}
extension Object: Foo {}
_ = Object().bar()
_ = Responder().bar()
_ = View().bar()