mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Remove one SILGen test (!) because it is testing for something that no longer happens: because Objective-C initializers now get properly imported as being ‘dynamic’, we don’t have vtable entries for them (or their overrides), so this test is no longer interesting. The non-Objective-C version of this test still persists and is unchanged.
15 lines
772 B
Swift
15 lines
772 B
Swift
// RUN: %target-swift-frontend -typecheck -enable-objc-interop -disable-objc-attr-requires-foundation-module -primary-file %s %S/Inputs/objc_override_multi_2.swift %S/Inputs/objc_override_multi_3.swift -verify
|
|
|
|
// RUN: %target-swift-frontend -emit-module -enable-objc-interop -emit-module-path=%t -module-name=foo -disable-objc-attr-requires-foundation-module %s %S/Inputs/objc_override_multi_2.swift %S/Inputs/objc_override_multi_3.swift -verify
|
|
|
|
class SubSub1 : Sub1 {
|
|
@objc func a() { } // expected-error{{method 'a()' with Objective-C selector 'a' conflicts with method 'f()' from superclass 'Super1' with the same Objective-C selector}}
|
|
|
|
func test() {
|
|
// Needed to force enough checking of Super1.f() to record its
|
|
// Objective-C selector.
|
|
f()
|
|
}
|
|
}
|
|
|