From: Stephane Glondu Date: Wed, 17 Dec 2025 13:55:33 +0100 Subject: Fix PrincipalFlag test with OCaml 5.4.0 --- testsuite/internal.ml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/testsuite/internal.ml b/testsuite/internal.ml index c7bfebc..3e58add 100644 --- a/testsuite/internal.ml +++ b/testsuite/internal.ml @@ -366,11 +366,17 @@ else if Sys.ocaml_version < "4.12.0" then 2 | let f x = (x.bar; x.foo) ^^^ Warning 18: this type-based field disambiguation is not principal.|} -else +else if Sys.ocaml_version < "5.4.0" then {|File "hello.ml", line 2, characters 20-23: 2 | let f x = (x.bar; x.foo) ^^^ Warning 18 [not-principal]: this type-based field disambiguation is not principal.|} +else +{|File "hello.ml", line 2, characters 20-23: +2 | let f x = (x.bar; x.foo) + ^^^ +Warning 18 [not-principal]: this type-based field disambiguation is not + principal.|} ) ~targets:("hello.byte",[]) ();;