Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-14631] Swift compiler error that is valid, but error is not helpful/incorrect #56983

Open
swift-ci opened this issue May 13, 2021 · 1 comment
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

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-14631
Radar rdar://problem/78020746
Original Reporter christianselig (JIRA User)
Type Bug

Attachment: Download

Environment

Xcode 12.5 (12E262) default everything, new project

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, DiagnosticsQoI, TypeChecker
Assignee None
Priority Medium

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)

@typesanitizer
Copy link

Oh no, this seems to give a failed to produce diagnostic on main @ c9b880d

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants