[cxx-interop] Finalize Swift 5.9 rules that determine when inherited members that shadow other members can be introduced to the Swift type that represents the C++ structure or class #66323
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
c++ interop
Feature: Interoperability with C++
c++ to swift
Feature → c++ interop: c++ to swift
compiler
The Swift compiler itself
swift 5.9
The exact rules that determine when members from inherited base types are introduced to Swift’s representation of the C++ type are not yet finalized in Swift 5.9. This issue tracks their finalization.
The current rules need to be updated to handle shadowing better. For example, given the following C++ code:
A user in Swift won't be unable to call the
water
method on aFern
object, as Swift will think it's an ambiguous call.The text was updated successfully, but these errors were encountered: