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
* Don't merge cases involving value binding patterns. For example,
`case .foo(let x)` can only be merged with other cases that match
compatible patterns and types. Since we don't know those types,
play it safe and don't merge them at all.
* Allow merging of cases before a `default` or `@unknown default`,
but only into their own `fallthrough`-only case, never into the
`default` itself.
* In lint mode, don't diagnose that a case before a `default` should
be merged into the `default`.
Fixesapple#310.
Environment
swift-format 0.50300.
Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28).
Additional Detail from JIRA
md5: 64b6228609f17a16f328087e06a7070d
Issue Description:
Is formatted by swift-format to:
Which breaks the code ('value must be bound in every pattern')
The text was updated successfully, but these errors were encountered: