Skip to content

Commit

Permalink
Add regression test for cons pattern in let binding (fsprojects#1996)
Browse files Browse the repository at this point in the history
  • Loading branch information
clkbug committed Jun 2, 2023
1 parent e9653fd commit 8b74fca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Fantomas.Core.Tests/LetBindingTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2165,3 +2165,11 @@ let x
) =
print "hello"
"""

[<Test>]
let ``cons pattern in let binding, 1996`` () =
formatSourceString false "let x::y = []" config
|> should
equal
"let x :: y = []
"

0 comments on commit 8b74fca

Please sign in to comment.