File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,6 +181,22 @@ let suite = suite "ppx" [
181181 let % lwt _ : _ = Lwt. return 0 in
182182 Lwt. return_true
183183 ) ;
184+
185+ (* offband report of bug, doesn't trigger but let's add to the testsuite anyway *)
186+ test " record-field-infer"
187+ (fun () ->
188+ let module M = struct type t = { a : int ; b : int } end in
189+ let module MM = struct type t = { a : float ; b : char ; } end in
190+ let % lwt { a = _; _ } : M. t = Lwt. return { M. a = 0 ; b = 0 } in
191+ Lwt. return_true
192+ )[@ ocaml.warning " -34-69" ] ;
193+ test " record-field-infer-brckt"
194+ (fun () ->
195+ let module M = struct type t = { a : int ; b : int } end in
196+ let module MM = struct type t = { a : float ; b : char ; } end in
197+ let % lwt ({ a = _; _ } : M.t ) = Lwt. return { M. a = 0 ; b = 0 } in
198+ Lwt. return_true
199+ )[@ ocaml.warning " -34-69" ] ;
184200]
185201
186202let _ = Test. run " ppx" [ suite ]
You can’t perform that action at this time.
0 commit comments