[SR-8797] Misleading compiler errors #51305
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler 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: f2dc6c9ca2ac0b74c004d15fc50e5a7b
Issue Description:
The code above leads to the error:
Cannot convert value of type '() -> ()' to specified type '((Void) -> ())?'
Whereas this code compiles successfully:
The text was updated successfully, but these errors were encountered: