diff --git a/ocaml/testsuite/tests/typing-local/local.ml b/ocaml/testsuite/tests/typing-local/local.ml index 04b720c0732..7dec35e6e51 100644 --- a/ocaml/testsuite/tests/typing-local/local.ml +++ b/ocaml/testsuite/tests/typing-local/local.ml @@ -2058,12 +2058,14 @@ val testboo3 : unit -> local_ bool = |}] (* Test from Nathanaƫlle Courant. - User can define strange AND, and its arguments should not cross modes. *) -external strange_and : 'a option -> 'a option -> bool = "%sequand" + User can define strange AND. Supposedly [strange_and] will look at its first + arguments, and returns [None] or tailcall on second argument accordingly. + The second argument should not cross modes in generall. *) +external strange_and : bool -> 'a option -> 'a option = "%sequand" let testboo4 () = let local_ x = Some "hello" in - strange_and x x + strange_and true x [%%expect{| external strange_and : 'a option -> 'a option -> bool = "%sequand" Line 5, characters 14-15: