[cxx-interop] Do not add base class members that cause lookup ambiguities with a derived class member of the same name

Fixes https://github.com/apple/swift/issues/66323
This commit is contained in:
Alex Lorenz
2023-07-07 10:36:34 -07:00
committed by Alex Lorenz
parent b03d8df2de
commit a10332548c
10 changed files with 106 additions and 2 deletions

View File

@@ -8,6 +8,13 @@
// CHECK-NEXT: var c: Int32
// CHECK-NEXT: }
// CHECK-NEXT: struct DerivedWithSameField {
// CHECK-NEXT: init()
// CHECK-NEXT: var a: Int32
// CHECK-NEXT: var b: Int32
// CHECK-NEXT: var c: Int32
// CHECK-NEXT: }
// CHECK-NEXT: struct DerivedWithOneField {
// CHECK-NEXT: init()
// CHECK-NEXT: var d: Int32