Skip to content

Commit bd1fe6e

Browse files
committed
Add reproducer
1 parent 5502b76 commit bd1fe6e

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

plugins/hls-rename-plugin/test/Main.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ tests :: TestTree
2626
tests = testGroup "Rename"
2727
[ goldenWithRename "Data constructor" "DataConstructor" $ \doc ->
2828
rename doc (Position 0 15) "Op"
29+
, goldenWithRename "Data constructor with fields" "DataConstructorWithFields" $ \doc ->
30+
rename doc (Position 0 13) "FooRenamed"
2931
, goldenWithRename "Exported function" "ExportedFunction" $ \doc ->
3032
rename doc (Position 2 1) "quux"
3133
, ignoreForGhcVersions [GHC92] recordConstructorIssue $
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
data Foo = FooRenamed { a :: Int, b :: Bool }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
data Foo = Foo { a :: Int, b :: Bool }

0 commit comments

Comments
 (0)