Skip to content

Commit

Permalink
test: locate fails on infix operator with parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed May 2, 2024
1 parent d3c200d commit 575e96a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/test-dirs/type-enclosing/need-parens.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FIXME: locate on `M.(|+)` should work:
$ $MERLIN single locate -position 2:11 -filename test.ml <<'EOF' | \
> jq '.value'
> module M = struct let (+) a b = a + b end
> let _ = M.(+)
> EOF
"Not in environment 'M.+'"

Locate on `M.(+|)` should work:
$ $MERLIN single locate -position 2:12 -filename test.ml <<'EOF' | \
> jq '.value'
> module M = struct let (+) a b = a + b end
> let _ = M.(+)
> EOF
{
"file": "test.ml",
"pos": {
"line": 1,
"col": 22
}
}

0 comments on commit 575e96a

Please sign in to comment.