summaryrefslogtreecommitdiff
path: root/testsuite/tests/typing-misc-bugs/pr6303_bad.ml
blob: 8a1706c1fc113fd44c0d9e338c221a1254c1eb94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(* TEST_BELOW
(* Blank lines added here to preserve locations. *)




*)

type 'a  foo = {x: 'a; y: int}
let r = {{x = 0; y = 0} with x = 0}
let r' : string foo = r

(* TEST
 flags = " -w -a ";
 ocamlc_byte_exit_status = "2";
 setup-ocamlc.byte-build-env;
 ocamlc.byte;
 check-ocamlc.byte-output;
*)