Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": []
}