[SR-13848] Restore Note About Optionality Mismatch in Redeclared Functions Involving IUOs and Optionals #56246
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
good first issue
Good for newcomers
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 1147b9bfe76cf8f9a6a7fd5065ba6139
Issue Description:
We currently consider functions that attempt to overload with an implicitly unwrapped optional and a plain optional to be redeclarations of each other and emit an error
There used to be a note in Swift 4.1 about how these redeclarations only differed in optionality, but it was removed here f088237
We should really add it back, it was helpful.
The text was updated successfully, but these errors were encountered: