Skip to content

Commit

Permalink
Adapt test to ocaml.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinans committed Jan 14, 2025
1 parent c435078 commit 23feb78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/poly-fail/test.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let ok =
let test = (fun x -> x)
in test "string", test 1;;
in test "string", test (Random.int 1);;

let ko =
let test = (fun x -> x)[@landmark "test"]
in test "string", test 1;;
in test "string", test (Random.int 1);;
8 changes: 4 additions & 4 deletions tests/poly-fail/test.out.expected
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
val ok : string * int = ("string", 1)
Line 4, characters 25-26:
4 | in test "string", test 1;;
^
val ok : string * int = ("string", 0)
Line 4, characters 25-39:
4 | in test "string", test (Random.int 1);;
^^^^^^^^^^^^^^
Error: This expression has type "int" but an expression was expected of type
"string"

0 comments on commit 23feb78

Please sign in to comment.