You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swift-ci opened this issue
Oct 7, 2016
· 2 comments
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfruntimeThe Swift Runtime
SR-2817 selector mismatch with obj-c delegates + extensions
Issue Description:
With the change described in SE-0005, some obvious words in Objective-C method names are now omitted when translating to Swift 3. However, in the case below, the method name translation does not work correctly making the obvious words NOT get omitted.
SuperClass is declared to be conformed to UICollectionViewDelegate protocol but does not implement any method from the protocol. SubClass is inherited from SuperClass and actually implements an optional method defined in UICollectionViewDelegate.
Now assign an instance of SubClass as the delegate of a UICollectionView, the string "OLD TRANSLATION" will be printed when the delegate method is called while users would expect "NEW TRANSLATION" instead. That means Swift 3 method name translation rule does not work correctly in this case.
The text was updated successfully, but these errors were encountered:
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfruntimeThe Swift Runtime
Environment
Swift 3, Xcode 8, iOS 10, iPhone 7 Simulator
Additional Detail from JIRA
md5: 763008d989d0c4a789fb56ced5ca3814
duplicates:
Issue Description:
With the change described in SE-0005, some obvious words in Objective-C method names are now omitted when translating to Swift 3. However, in the case below, the method name translation does not work correctly making the obvious words NOT get omitted.
SuperClass is declared to be conformed to UICollectionViewDelegate protocol but does not implement any method from the protocol. SubClass is inherited from SuperClass and actually implements an optional method defined in UICollectionViewDelegate.
Now assign an instance of SubClass as the delegate of a UICollectionView, the string "OLD TRANSLATION" will be printed when the delegate method is called while users would expect "NEW TRANSLATION" instead. That means Swift 3 method name translation rule does not work correctly in this case.
The text was updated successfully, but these errors were encountered: