mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
14 lines
274 B
Swift
14 lines
274 B
Swift
// RUN: %target-typecheck-verify-swift -swift-version 3
|
|
|
|
// Static function in protocol should have `Self.` instead of its protocol name
|
|
protocol P {}
|
|
|
|
extension P {
|
|
static func f1() {}
|
|
|
|
func g() {
|
|
f1() // expected-error {{use of unresolved identifier 'f1'}}
|
|
}
|
|
}
|
|
|