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

Ctype.Unify failure #60

Open
yallop opened this issue Aug 7, 2023 · 0 comments
Open

Ctype.Unify failure #60

yallop opened this issue Aug 7, 2023 · 0 comments

Comments

@yallop
Copy link
Contributor

yallop commented Aug 7, 2023

Another example of an ill-typed program that fails gracelessly with Fatal error: exception Ctype.Unify(_):

module type S = sig
  type r and 'b m and x = r and 'a t = S of (x -> 'a m)
  val f : 'b m -> 'b m
end

let g {T : S} (T.S f) = f
let f {T:S} ff = T.S (fun r -> T.f (g ff ()))
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