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




*)

module type S = sig type t = { a : int; b : int; } end;;
let f (module M : S with type t = int) = { M.a = 0 };;

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