[SR-988] Undiagnosed type error in subclass function with Self return type #43600
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: f4e27707243b5d6f3bf146b510e643de
duplicates:
Issue Description:
The following code should fail to compile, because B is violating the Self return contract of P, which is conformed to by A. This crashes at runtime because we manage to get an object of type C (via the generic shim `f0`) which is actual only a B.
The text was updated successfully, but these errors were encountered: