forked from ocaml/merlin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for issue ocaml#1575 Completion for OCaml object methods
- Loading branch information
1 parent
8f1d3f1
commit b6d041c
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": [] | ||
} | ||
|