Skip to content

Commit

Permalink
Add regression test for comment after arrow in SynExpr.Lambda. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf authored Jan 14, 2022
1 parent 5d33c55 commit 46858e7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Fantomas.Tests/LambdaTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1086,3 +1086,20 @@ let g =
revisionNumber = r
processName = pn } -> p, r, pn)
"""

[<Test>]
let ``comment after arrow is preserved, 1870`` () =
formatSourceString
false
"""
fun a -> // foo
a
"""
config
|> prepend newline
|> should
equal
"""
fun a -> // foo
a
"""

0 comments on commit 46858e7

Please sign in to comment.