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

21 lines
300 B
Swift

// RUN: %target-swift-frontend -typecheck -verify %s
class Object {}
class Responder: Object {}
class View: Responder {}
extension View {}
protocol Foo {}
extension Foo {
func bar() -> Self { return self }
}
extension Object: Foo {}
_ = Object().bar()
_ = Responder().bar()
_ = View().bar()