Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when accessing a type from another module #39

Open
ionchirica opened this issue Feb 13, 2025 · 0 comments
Open

Exception when accessing a type from another module #39

ionchirica opened this issue Feb 13, 2025 · 0 comments

Comments

@ionchirica
Copy link
Contributor

This exception occurs when trying to access types with arity > 1 from other modules.

For instance, this example:

module M =
  struct
    type maybe_pair =
      | None
      | Pair of int * int
  end

module N =
  struct
    let access_pair t =
      match t with
      | M.None -> () 
      | M.Pair (x, y) -> () 
  end

Raises the exception Not_found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant