Improve enum element pattern matching diagnostics when the arity of arguments mismatch #66750
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
diagnostics QoI
Bug: Diagnostics Quality of Implementation
pattern matching
Feature: pattern matching
type checker
Area → compiler: Semantic analysis
For the following:
we emit the error:
The non-closure case isn't much better
We ought to improve the diagnostics around enum element pattern argument matching to give diagnostics comparable to existing argument list diagnostics.
rdar://72846034
The text was updated successfully, but these errors were encountered: