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
This is an odd edge-case bug where when a method call has inline generics in a comparison expression, the parameter list of the method call is swapped with the right-hand side content of the expression when the right-hand side is a variable and not a literal.
Conditions
The issue can be reproduced with:
SwiftFormat 0.55.3
factory default SwiftFormat configuration
specifying any Swift version - I tried all versions from Swift 5.0 through 6.0 and they all produce the same incorrect output
issue still happens when parameter list is non-empty
Issue
This is an odd edge-case bug where when a method call has inline generics in a comparison expression, the parameter list of the method call is swapped with the right-hand side content of the expression when the right-hand side is a variable and not a literal.
Conditions
The issue can be reproduced with:
Example
Original code:
SwiftFormat output (diff):
The text was updated successfully, but these errors were encountered: