You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I copied and pasted it from the forums here. The formatting is less readable here, but the line above in code voice was the trigger and the quotation was the error. There is more context in the forum if you end up needing it.
This rule is supposed to be catching situations like case let .label(foo, bar) (to prefer case .label(let foo, let bar)), but the implementation is far too simple: it only checks to see if the case's pattern is a ValueBindingPatternSyntax, which also includes patterns like let x as T.
We need to drill further down into the pattern to distinguish these.
Additional Detail from JIRA
md5: a2489a4b198fde114394d4d46b74703d
Issue Description:
case let simple as SimpleTypeIdentifierSyntax:
The text was updated successfully, but these errors were encountered: