Skip to content

Commit fc2f6e5

Browse files
authored
Add test for issue ocaml#1226 (ocaml#1227)
1 parent 47ebe5e commit fc2f6e5

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
FIXME
2+
3+
$ $MERLIN single type-enclosing -position 5:9 -filename test.ml <<EOF
4+
> module Foo = struct
5+
> let bar = 42
6+
> end
7+
> type t = Foo of int
8+
> let a = Foo 3
9+
> EOF
10+
{
11+
"class": "return",
12+
"value": [
13+
{
14+
"start": {
15+
"line": 5,
16+
"col": 8
17+
},
18+
"end": {
19+
"line": 5,
20+
"col": 11
21+
},
22+
"type": "sig val bar : int end",
23+
"tail": "no"
24+
},
25+
{
26+
"start": {
27+
"line": 5,
28+
"col": 8
29+
},
30+
"end": {
31+
"line": 5,
32+
"col": 13
33+
},
34+
"type": "t",
35+
"tail": "no"
36+
}
37+
],
38+
"notifications": []
39+
}

0 commit comments

Comments
 (0)