Skip to content

Commit

Permalink
Remove duplicate method defs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboris committed Oct 19, 2024
1 parent 544e72a commit b793199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ let emit_class_method_def class_name ~open_modules =
Option.none
else
Option.some (cmd, Method.get_type_encoding m))
|> List.sort (fun a b -> String.compare (fst a) (fst b))
|> List.sort_uniq (fun a b -> String.compare (fst a) (fst b))
|> List.iter (fun (cmd, enc) ->
let name = cmd |> String.split_on_char ':' |> String.concat "'" in
Encode.parse_type ~is_method:true enc
Expand Down

0 comments on commit b793199

Please sign in to comment.