We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c435078 commit 23feb78Copy full SHA for 23feb78
tests/poly-fail/test.ml
@@ -1,7 +1,7 @@
1
let ok =
2
let test = (fun x -> x)
3
- in test "string", test 1;;
+ in test "string", test (Random.int 1);;
4
5
let ko =
6
let test = (fun x -> x)[@landmark "test"]
7
tests/poly-fail/test.out.expected
100755
100644
-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 commit comments