Skip to content

Commit

Permalink
Add failing test for ocaml-ppx#2406
Browse files Browse the repository at this point in the history
  • Loading branch information
Julow committed Oct 5, 2023
1 parent a939aa4 commit c5ed121
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/passing/tests/ocp_indent_compat.ml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,12 @@ let long_function_name
: type a. a long_long_type -> a -> a -> a -> wrap_wrap_wrap -> unit
=
fun () -> ()

let add_edge target dep =
if target <> dep
then (
Hashtbl.replace edges dep
(target :: (try Hashtbl.find edges dep with Not_found -> []));
Hashtbl.replace edge_count target
(1 + try Hashtbl.find edge_count target with Not_found -> 0);
if not (Hashtbl.mem edge_count dep) then Hashtbl.add edge_count dep 0)

0 comments on commit c5ed121

Please sign in to comment.