mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user