diff --git a/src/Fantomas.Core.Tests/LetBindingTests.fs b/src/Fantomas.Core.Tests/LetBindingTests.fs index dba78cf6d6..5f1907c1b9 100644 --- a/src/Fantomas.Core.Tests/LetBindingTests.fs +++ b/src/Fantomas.Core.Tests/LetBindingTests.fs @@ -2165,3 +2165,11 @@ let x ) = print "hello" """ + +[] +let ``cons pattern in let binding, 1996`` () = + formatSourceString false "let x::y = []" config + |> should + equal + "let x :: y = [] +"