diff --git a/tests/test-dirs/type-enclosing/need-parens.t b/tests/test-dirs/type-enclosing/need-parens.t new file mode 100644 index 0000000000..21954932e1 --- /dev/null +++ b/tests/test-dirs/type-enclosing/need-parens.t @@ -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 + } + }