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

[ortac-monolith] declare abstract type when it is an alias for a core_type #84

Open
n-osborne opened this issue May 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@n-osborne
Copy link
Collaborator

type t = int
val f : t -> bool
(*@ b = f t *)

gives

module S = struct let t = declare_abstract_type ~var:"t" () end
let () = let spec = M.int ^!> bool in declare "f is Ok" spec R.f C.f
let () = let fuel = 100 in main fuel

where:

  1. t is declared as an abstract type despite the fact that it is not
  2. test declaration for f uses M.int where we would expect S.t
@n-osborne n-osborne added the bug Something isn't working label May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant