Skip to content

Commit 873d8df

Browse files
vouillonhhugo
authored andcommitted
Test: method lookup failure
1 parent 059fe7d commit 873d8df

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

compiler/tests-wasm_of_ocaml/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(tests
2-
(names gh38 gh46 gh107 gh112 gh1904)
2+
(names gh38 gh46 gh107 gh112 gh1904 gh2034)
33
(modes js wasm)
44
(js_of_ocaml
55
(flags :standard --disable optcall --no-inline))
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
let f x = x#b
2+
3+
let o1 =
4+
object
5+
method a = ()
6+
7+
method b = ()
8+
end
9+
10+
let o2 =
11+
object
12+
method b = ()
13+
end
14+
15+
let () =
16+
f o1;
17+
f o2

0 commit comments

Comments
 (0)