The Swift compiler (rightfully) complains about selector mismatches of optional protocol methods when the protocol conformance is declared on that class directly, but the error is missing if the protocol conformance is inherited.
Steps to Reproduce:
Please open and run the sample app.
Note that `tableView(:editingStyleForRowAtIndexPath:)` (SubController.swift) has not been migrated correctly, as the second parameter has not been stripped of `IndexPath`.
Strangely enough, you can set a breakpoint and will note that this method is called at runtime.
If you remove the UITableViewDelegate conformance declaration from BaseController.swift and declare it within SubController.swift directly, the compiler shows an error + FixIt as expected.
The compiler should show the error regardless where the protocol conformance has been declared.
The compiler shows certain warnings only when protocol conformance is declared on that class directly.
This is a follow-up of rdar://27348369 that has been resolved (from my point of view), but seems very similar in nature.
The text was updated successfully, but these errors were encountered: