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-14952] Unable to provide diagnostic for expression #57294

Closed
swift-ci opened this issue Jul 22, 2021 · 3 comments
Closed

[SR-14952] Unable to provide diagnostic for expression #57294

swift-ci opened this issue Jul 22, 2021 · 3 comments
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 failed to produce diagnostic Bug → internal error: Failed to produce diagnostic for expression type checker Area → compiler: Semantic analysis

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-14952
Radar rdar://problem/81019906
Original Reporter Brownie (JIRA User)
Type Bug

Attachment: Download

Environment

Xcode 13.0 beta 3, deploying to iOS 15

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

md5: a71041692c370231dc1d0107c1dc9f09

Issue Description:

Getting an error "Failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project" in a semi-new project in a SwiftUI view

@swift-ci
Copy link
Collaborator Author

Comment by Umar haroon (JIRA)

the error is removed when the types are correctly cast in the function 'test'

@typesanitizer
Copy link

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@xedin
Copy link
Member

xedin commented Jun 28, 2022

Looks like this has been fixed. 5.7 compiler would produce two errors:

error: value of type 'Game' has no member 'games'

and

error: cannot convert value of type 'NBA' to expected argument type 'NBAGames'

@xedin xedin closed this as completed Jun 28, 2022
@AnthonyLatsis AnthonyLatsis added the compiler The Swift compiler in itself label Dec 13, 2022
@AnthonyLatsis AnthonyLatsis added the failed to produce diagnostic Bug → internal error: Failed to produce diagnostic for expression label Dec 22, 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 failed to produce diagnostic Bug → internal error: Failed to produce diagnostic for expression type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

4 participants