mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When MemberImportVisibility is enabled we failed to find certain base methods from the extensions when said base methods are imported from C++. rdar://154887575
23 lines
567 B
Swift
23 lines
567 B
Swift
// RUN: %target-run-simple-swift(-I %S/Inputs/ -Xfrontend -cxx-interoperability-mode=default -enable-upcoming-feature MemberImportVisibility)
|
|
//
|
|
// REQUIRES: executable_test
|
|
// REQUIRES: swift_feature_MemberImportVisibility
|
|
|
|
import InheritedLookup
|
|
import StdlibUnittest
|
|
|
|
var InheritedMemberTestSuite = TestSuite("Test if inherited lookup works")
|
|
|
|
extension Bar.Derived {
|
|
public func callBase() {
|
|
let _ = baseMethod()
|
|
}
|
|
}
|
|
|
|
InheritedMemberTestSuite.test("Look up base methods from extensions") {
|
|
let a = Bar.Derived()
|
|
a.callBase()
|
|
}
|
|
|
|
runAllTests()
|