Skip to content

Commit

Permalink
Add regression test for #1226. (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Dec 17, 2020
1 parent b790f88 commit 28212db
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Fantomas.Tests/SpaceBeforeUppercaseInvocationTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,22 @@ let untypedResLong =
somethingElseWithARatherLongVariableName
)
"""

[<Test>]
let ``function application inside parenthesis followed by .DotIndexedGet, 1226`` () =
formatSourceString
false
"""
module Foo =
let Bar () =
(doc.DocumentNode.SelectNodes "//table").[0]
"""
config
|> prepend newline
|> should
equal
"""
module Foo =
let Bar () =
(doc.DocumentNode.SelectNodes "//table").[0]
"""

0 comments on commit 28212db

Please sign in to comment.