[SR-11446] Switch matches enum case with incorrect number (and spelling) of argument labels. #53847
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
Additional Detail from JIRA
md5: 268975683901af37469c719a6fca7ccb
Issue Description:
Consider the following code:
I would expect this to be a compiler error since the `bar` case only has one associated value, but in our pattern, we name two.
It's also a bit strange that no underscores or variable names are required.
The text was updated successfully, but these errors were encountered: