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

Stash compilation error #2

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Stash compilation error #2

wants to merge 1 commit into from

Conversation

mbarbin
Copy link
Owner

@mbarbin mbarbin commented Feb 19, 2024

I don't understand the following error yet, given that I bind the type a by a type constraint on the field [t].


File "test/test__cache.ml", line 42, characters 27-53:
42 |   let (Provider.T (type a) { t = (_ : a); interface }) = num_printer in
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Existential types introduced in a constructor pattern
       must be bound by a type constraint on the argument.

I don't understand the following error yet, given that I bind the type
a by a type constraint on the field [t].

---
File "test/test__cache.ml", line 42, characters 27-53:
42 |   let (Provider.T (type a) { t = (_ : a); interface }) = num_printer in
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Existential types introduced in a constructor pattern
       must be bound by a type constraint on the argument.
@mbarbin
Copy link
Owner Author

mbarbin commented Feb 19, 2024

Looks like it possibly relates to ocaml/ocaml#12935

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

Successfully merging this pull request may close these issues.

None yet

1 participant