Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions test/ppx/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,22 @@ let suite = suite "ppx" [
let%lwt _ : _ = Lwt.return 0 in
Lwt.return_true
) ;

(* offband report of bug, doesn't trigger but le *)
test "record-field-infer"
(fun () ->
let module M = struct type t = { a : int; b : int } end in
let module MM = struct type t = { a : float; b : char; } end in
let%lwt { a = _; _ } : M.t = Lwt.return { M.a = 0; b = 0 } in
Lwt.return_true
)[@ocaml.warning "-34-69"] ;
test "record-field-infer-brckt"
(fun () ->
let module M = struct type t = { a : int; b : int } end in
let module MM = struct type t = { a : float; b : char; } end in
let%lwt ({ a = _; _ } : M.t) = Lwt.return { M.a = 0; b = 0 } in
Lwt.return_true
)[@ocaml.warning "-34-69"] ;
]

let _ = Test.run "ppx" [ suite ]
Loading