[SR-10615] Delegation From Protocol Extension With Base Class Calls Incorrect Method #53015
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
Xcode 10.2
Swift 5
Additional Detail from JIRA
md5: 84059db668155a2baefc0c5c9b308a6d
duplicates:
Issue Description:
If you have a base class conforming to a protocol, then conform to a separate protocol in the derived class which overrides functionality in the base class' protocol, calling the methods directly on that class results in the correctly overridden method to be called, but as soon as you delegate from a method in the protocol chain, you always get the most basic protocol method.
In the below, I would expect it to print "one", "two", "three" every time.
The text was updated successfully, but these errors were encountered: