[SR-10932] Incorrect Error Description For Substrings #53323
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
improvement
standard library
Area: Standard library umbrella
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 273026d096d5ee94205038b5afcf8de9
relates to:
Issue Description:
Given this code:
Xcode 11 and Swift 5.1 present the following error to the user on the line marked with "// ERROR":
This error is worse than useless because it not only does nothing to inform the user what the problem is (the Substring must be converted back to String), it leads them down the wrong path when searching Stack Overflow.
The compiler should provide a much better error message in this case.
The text was updated successfully, but these errors were encountered: