[SR-14523] Failed to produce diagnostic for expression #56875
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
Additional Detail from JIRA
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.
The text was updated successfully, but these errors were encountered: