Skip to content

Commit

Permalink
Add jump-to-mli test case
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Oct 15, 2024
1 parent 2c8423f commit 618267f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test-dirs/locate/issue1848.t
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ Locate the Bar on line 4
> end
> EOF


$ $MERLIN single locate -position 4:28 -look-for mli \
> -filename test1.ml < test1.ml | jq .value
{
"file": "$TESTCASE_ROOT/foo.mli",
"pos": {
"line": 1,
"col": 7
}
}

FIXME Module type Bar in foo.mli is a correct answer, but since there is only
one corresponding implementation we could jump there instead.
$ $MERLIN single locate -position 4:28 -look-for ml \
Expand Down

0 comments on commit 618267f

Please sign in to comment.