[SR-1950] Read-only protocol property requirements not satisfied by subtypes, when they should be #44559
Labels
compiler
The Swift compiler in itself
conformances
Feature → protocol: protocol conformances
duplicate
Resolution: Duplicates another issue
feature
A feature request or implementation
improvement
protocol
Feature → type declarations: Protocol declarations
type checker
Area → compiler: Semantic analysis
Attachment: Download
Additional Detail from JIRA
md5: eb8a5cbd4c2b9bb32829979d579cd44b
duplicates:
Issue Description:
Protocol property requirements are not satisfied by subtypes of the property type.
For example: a protocol that requires a property of
UIResponder?
will not be satisfied with an implementation of that property asUIViewController?
, orUIView?
and will instead require the baseUIResponder?
to fulfill the requirement.See attached screenshot.
The text was updated successfully, but these errors were encountered: