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-14523] Failed to produce diagnostic for expression #56875

Open
swift-ci opened this issue Apr 24, 2021 · 2 comments
Open

[SR-14523] Failed to produce diagnostic for expression #56875

swift-ci opened this issue Apr 24, 2021 · 2 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 type checker Area → compiler: Semantic analysis

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-14523
Radar rdar://problem/77164408
Original Reporter rmann (JIRA User)
Type Bug

Attachment: Download

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

md5: 1ba6374ffcbc1ac4526f6706a2e64b81

Issue Description:

I wrote some code and the Swift compiler had a mental breakdown and asked for help. Project attached. Offending code is ProjectWindowContentView.swift:26. `self.document.layers` is an array of `Layer`, a class. Not sure why this doesn't compile, but if I change it to `List(0 ..< 5)`, it compiles fine.

Oddly enough, I was getting an error on line 26, although I didn't understand it. I'm not sure what changed to make Swift cry.

@typesanitizer
Copy link

@swift-ci create

@xedin
Copy link
Member

xedin commented Apr 28, 2021

rmann (JIRA User) Could you try the recent snapshot of main branch to see if that has been solved there? I'm having trouble installing of the of dependencies required to build the attached project...

@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

3 participants