Skip to content

Commit

Permalink
refactor-open record field bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ulugbekna committed Apr 8, 2021
1 parent 30362e7 commit 285e94a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/test-dirs/refactor-open/record_field.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FIXME refactor open rewriting the whole record instead of a field label
$ $MERLIN single refactor-open -action unqualify -position 4:7 <<EOF
> module M = struct
> type r = {i: int}
> end
> open M
> let r = {M.i = 1}
> EOF
{
"class": "return",
"value": [
{
"start": {
"line": 5,
"col": 8
},
"end": {
"line": 5,
"col": 17
},
"content": "i"
}
],
"notifications": []
}

0 comments on commit 285e94a

Please sign in to comment.