mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
I am doing this separately from the actual change to eliminate the option to make it easier to review.
19 lines
291 B
Swift
19 lines
291 B
Swift
// 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()
|
|
}
|