Skip to content

Commit

Permalink
Add regression test for #1998 (#2060)
Browse files Browse the repository at this point in the history
  • Loading branch information
dawedawe authored Feb 3, 2022
1 parent e79ac65 commit 3be8d8d
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 @@ -1137,3 +1137,20 @@ let ``parenthesis function call with long lambda argument`` () =
// comment
42)
"""

[<Test>]
let ``function expression and argument expression with parenthesis, 1998`` () =
formatSourceString
false
"""
(SomeModule.doSomething << SomeModule.doSomethingElse) (fun x -> x)
"""
config
|> prepend newline
|> should
equal
"""
(SomeModule.doSomething
<< SomeModule.doSomethingElse)
(fun x -> x)
"""

0 comments on commit 3be8d8d

Please sign in to comment.