Files
swift-mirror/test/decl/objc_override_multi.swift
Doug Gregor b34ac5ccc7 Additional test updates for the ‘override’ and ‘dynamic’ requests.
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.
2018-07-18 14:50:40 -07:00

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()
}
}