blob: 34892d18b12cbe3113f6d0bb9e69f79262dbde27 [file] [log] [blame]
// RUN: %target-swift-frontend -emit-ir -verify %s
protocol BaseProtocol {
static func run()
}
protocol DerivedProtocol: BaseProtocol {
}
struct Foo: DerivedProtocol {
static func run() { }
}
@inline(never)
func test() {
let t: DerivedProtocol.Type = Foo.self
t.run()
}