[SR-14003] Bad diagnostic when assigning a closure with class Self #56396
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
type checker
Area → compiler: Semantic analysis
Environment
Additional Detail from JIRA
md5: e280acd42d8cfa2b19e7fca2189f5048
Issue Description:
From what I can tell, this assignment should be disallowed (since for any potential subclass,
Self
will differ fromC
), unlessC
is madefinal
(should that be a separate bug)?In any case, this diagnostic message is incorrect, though I'm not sure what the wording should be.
Is there a term for the process of taking a
Self
and converting it to a place where the literal type name is used?The text was updated successfully, but these errors were encountered: