Skip to content

Commit 97fe4d9

Browse files
vouillonhhugo
authored andcommitted
Update method call test
1 parent 86beb38 commit 97fe4d9

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

compiler/tests-wasm_of_ocaml/gh2034.ml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,30 @@ let o2 =
1212
method b = ()
1313
end
1414

15+
let g x = x#d
16+
17+
let o3 =
18+
object
19+
method a = ()
20+
21+
method b = ()
22+
23+
method c = ()
24+
25+
method d = ()
26+
end
27+
28+
let o4 =
29+
object
30+
method b = ()
31+
32+
method c = ()
33+
34+
method d = ()
35+
end
36+
1537
let () =
1638
f o1;
17-
f o2
39+
f o2;
40+
g o3;
41+
g o4

0 commit comments

Comments
 (0)