[SR-14631] Swift compiler error that is valid, but error is not helpful/incorrect #56983
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
Attachment: Download
Environment
Xcode 12.5 (12E262) default everything, new project
Additional Detail from JIRA
md5: 2aa9dc55226a2a5cffb10c1a1ef39e81
Issue Description:
I have an error in my code with where I mistyped an enum and as a result it doesn't exist. However the Swift compiler doesn't indicate this as such and points to an issue with the ForEach loop syntax, which confused me for quite awhile. (I'm new to SwiftUI so I assumed I was just doing something silly with the ForEach and didn't bother to look lower)
Error:
Extra arguments at positions #2, #3 in call
(Full screenshot attached)
The text was updated successfully, but these errors were encountered: