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] generation of Monolith.spec for function arguments that are not core_type is broken #83

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

Comments

@n-osborne
Copy link
Collaborator

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

will give:

(* ... *)
module G = struct  end
module P = struct  end
module S = struct  end
let () = let spec = S.tuple3 ^!> bool in declare "f is Ok" spec R.f C.f
let () = let fuel = 100 in main fuel

Where the generation of the test declaration expect to find the definition of a 3-uplet of int in the module S, which is empty.

As the limitation of tuples of length 2 comes from monolith itself, we could keep this limitation.

@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