Skip to content

Commit 23feb78

Browse files
committed
Adapt test to ocaml.5.3
1 parent c435078 commit 23feb78

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/poly-fail/test.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let ok =
22
let test = (fun x -> x)
3-
in test "string", test 1;;
3+
in test "string", test (Random.int 1);;
44

55
let ko =
66
let test = (fun x -> x)[@landmark "test"]
7-
in test "string", test 1;;
7+
in test "string", test (Random.int 1);;

tests/poly-fail/test.out.expected

100755100644
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
val ok : string * int = ("string", 1)
2-
Line 4, characters 25-26:
3-
4 | in test "string", test 1;;
4-
^
1+
val ok : string * int = ("string", 0)
2+
Line 4, characters 25-39:
3+
4 | in test "string", test (Random.int 1);;
4+
^^^^^^^^^^^^^^
55
Error: This expression has type "int" but an expression was expected of type
66
"string"
77

0 commit comments

Comments
 (0)