Skip to content

Commit

Permalink
Add a test illustrating the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed May 25, 2023
1 parent 7e8eb2c commit 654f6b7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tests/test-dirs/locate/exception-at-origin-issue.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
$ cat >dune-project <<EOF
> (lang dune 3.0)
> EOF

$ cat >dune <<EOF
> (library
> (name foo))
> EOF

$ cat >foo.ml <<EOF
> exception Unix_error = Unix.Unix_error
> EOF

$ dune build

FIXME: Merlin should jump to stdlib Unix.Unix_error
$ $MERLIN single locate -look-for ml -position 1:31 \
> -filename foo.ml <foo.ml
{
"class": "return",
"value": "Already at definition point",
"notifications": []
}

FIXME: Merlin should jump to stdlib Unix
$ $MERLIN single locate -look-for ml -position 1:25 \
> -filename foo.ml <foo.ml
{
"class": "return",
"value": "Already at definition point",
"notifications": []
}

0 comments on commit 654f6b7

Please sign in to comment.