Skip to content

Can't import module types containing GADTs #92

@CPCTC

Description

@CPCTC

Code:

(* foo.ml *)
module type T = sig
    type _ t = None: unit t
end

(* bar.ml *)
module type T = [%import: (module Foo.T)]

Result:

File "bar.ml", line 1, characters 34-39:
1 | module type T = [%import: (module Foo.T)]
                                      ^^^^^
Error: The type variable name '_ is not allowed in programs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions