blob: da20c662375b39512448d20a5ebb16f267f15e4b [file] [log] [blame]
// RUN: %target-run-simple-swift(-parse-as-library) | %FileCheck %s
// REQUIRES: executable_test
protocol P {
}
extension P {
static func main() throws {
print("P.main")
}
}
struct S {
static func main() throws {
print("S.main though both throw")
}
}
// CHECK: S.main though both throw
@main
extension S : P {}