[SR-14408] Improve diagnostic when trying to use enum case without payload #56765
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
improvement
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 34e58d22ee98f59e77c57a4b3543f250
is duplicated by:
Issue Description:
Notice that the diagnostic is better for the
c == .South
case. It would be nice if the type-checker could recognize that in thec == .North
case, the user was trying to accessCompassPoint.North
and emit a more useful diagnostic.The text was updated successfully, but these errors were encountered: