summaryrefslogtreecommitdiff
path: root/testsuite/tests/typing-misc-bugs/pr6303_bad.ml
blob: e2980e0f0315e8b04c2572669065c788708b7bc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
(* TEST
flags = " -w -a "
ocamlc_byte_exit_status = "2"
* setup-ocamlc.byte-build-env
** ocamlc.byte
*** check-ocamlc.byte-output
*)

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