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 committed Mar 6, 2023
1 parent 85ad3a6 commit aace3cb
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 aace3cb

Please sign in to comment.