Skip to content

Commit

Permalink
Update src/Fantomas.Core/ASTTransformer.fs
Browse files Browse the repository at this point in the history
Co-authored-by: dawe <[email protected]>
  • Loading branch information
nojaf and dawedawe authored Nov 2, 2023
1 parent e1d0ec0 commit 3612cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fantomas.Core/ASTTransformer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2662,7 +2662,7 @@ let mkPropertyGetSetBinding
let pats =
match ps with
| [ SynPat.Tuple(false, ps, commas, _) ] when
// This the case for an indexer setter.
// This is the case for an indexer setter.
// The AST is weird in this case and doesn't properly reflect what the user wrote.
// It will represent `set (x: int, y: int, z: int) v` as a single tuple with 4 patterns and 2 commas.
ps.Length - 2 = commas.Length
Expand Down

0 comments on commit 3612cb1

Please sign in to comment.