mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
17 lines
764 B
Swift
17 lines
764 B
Swift
extension Redecl1 {
|
|
@objc(method1)
|
|
func method1_alias() { } // expected-error{{method 'method1_alias()' with Objective-C selector 'method1' conflicts with method 'method1()' with the same Objective-C selector}}
|
|
|
|
@objc(init)
|
|
func initialize() { } // expected-error{{method 'initialize()' with Objective-C selector 'init' conflicts with initializer 'init()' with the same Objective-C selector}}
|
|
|
|
@objc func method2() { } // expected-error{{method 'method2()' with Objective-C selector 'method2' conflicts with method 'method2_alias()' with the same Objective-C selector}}
|
|
}
|
|
|
|
@objc class Redecl2 {
|
|
@objc init() { } // expected-note{{initializer 'init()' declared here}}
|
|
|
|
@objc
|
|
func method1() { } // expected-note{{method 'method1()' declared here}}
|
|
}
|