Skip to content

Commit

Permalink
add test for module type with
Browse files Browse the repository at this point in the history
<!-- ps-id: c4f408bb-cab8-4ea2-8486-702917493cfd -->
  • Loading branch information
tatchi committed Feb 20, 2023
1 parent 6506987 commit fceb670
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src_test/ppx_deriving/test_ppx_import.ml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ type package_type =

module type Hashable = [%import: (module Hashtbl.HashedType)]

module type HashableWith = [%import:
(module Hashtbl.HashedType with type t = string)]

module HashableWith : HashableWith = struct
type t

let equal = String.equal
let hash = int_of_string
end

[%%import: type self_t = Test_self_import.t]

let test_self_import _ctxt =
Expand Down

0 comments on commit fceb670

Please sign in to comment.