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
Polymorphic type annotations generalize weak polymorphic variables, making such programs type check and segfault:
let f x = let ref : type a . a option ref = ref None in ref := Some x; Option.get !ref let () = print_string (f 0)
This program is rejected by OCaml 4.10 but is accepted by OCaml 4.11 and trunk. Bisection points to the commit c272447.
The text was updated successfully, but these errors were encountered:
Woops! Looks like an opportunity for a 4.11.1.
Sorry, something went wrong.
Fixed by #9857
Add test for ocaml#9856
bab1cf8
Merge pull request #9857 from lpw25/fix-poly-refs-check
5670723
Add missing `lower_contravariant` call (fixes #9856)
66c368a
No branches or pull requests
Polymorphic type annotations generalize weak polymorphic variables, making such programs type check and segfault:
This program is rejected by OCaml 4.10 but is accepted by OCaml 4.11 and trunk. Bisection points to the commit c272447.
The text was updated successfully, but these errors were encountered: