Skip to content

Commit

Permalink
Add test for issue ocaml#1575 Completion for OCaml object methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sidkshatriya authored and voodoos committed May 16, 2023
1 parent 8f1d3f1 commit b6d041c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/test-dirs/completion/issue1575.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

$ cat >test.ml <<EOF
> let foo = object
> method bar i = i + 5
> method baz _k = "hello"
> end
>
> let something = foo#
> EOF

FIXME: Upon typing `#` we should get a completion for bar and baz.
However this does not happen :-(. Interestingly utop gives bar and
baz as expected!

$ $MERLIN single complete-prefix -position 6:21 -prefix "foo#" \
> -filename test.ml < test.ml | jq
{
"class": "return",
"value": {
"entries": [],
"context": null
},
"notifications": []
}

0 comments on commit b6d041c

Please sign in to comment.