[SR-11073] Generic subclass does not respond to selector if conforming Objective-C protocol #53465
Labels
attributes
Feature: Declaration and type attributes
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
conformances
Feature → protocol: protocol conformances
duplicate
Resolution: Duplicates another issue
@objc
Feature → attributes: The @objc attribute
objective-c interop
Feature: Interoperability with Objective-C
regression
swift 5.0
type checker
Area → compiler: Semantic analysis
unexpected behavior
Bug: Unexpected behavior or incorrect output
whole module optimization only
Flag: An issue whose reproduction requires whole module optimization
Attachment: Download
Environment
XCode 10.2.1 default toolchain
Additional Detail from JIRA
md5: 6d8b5869344f293ba1395c7797c79f52
duplicates:
Issue Description:
Write the following code in a Swift file:
Then write in an Objective-C file the next:
This behavior can be fixed by declaring
collectionView:layout:sizeForItemAt:
method inSwiftVC
and overriding it inSubSwiftVC
.The text was updated successfully, but these errors were encountered: