[SR-14608] Failed to produce diagnostic for expression for switch body containing switch statement #56960
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
Attachment: Download
Environment
Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
Target: x86_64-apple-darwin20.5.0
(Xcode Version 12.5 (12E262))
Additional Detail from JIRA
md5: 4efd62add0ec0af0922650811aa58702
Issue Description:
While coding, I had modified the "Style" enum to include associated values, not noticing "var style = Style.success" now needing an associated value. It threw the compiler off but didn't really explain why. It took me a while to understand what was happening.
The previous code produces the error:
The text was updated successfully, but these errors were encountered: