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

Infer eqtype as appropriate #3694

Open
briangmilnes opened this issue Jan 24, 2025 · 0 comments
Open

Infer eqtype as appropriate #3694

briangmilnes opened this issue Jan 24, 2025 · 0 comments

Comments

@briangmilnes
Copy link
Contributor

/// Do I get a general type when I use it as an eqtype in inference?
module EqTypeInf

// Works, of course
let aneq (#a:eqtype) (a1 a2: a) = a1 = a2

// Does not infer an eqtype for #a.
[@@expect_failure]
let aneq' #a (a1 a2: a) = a1 = a2
// (Error 19) - Subtyping check failed
// - Expected type eqtype got type Type0
// commit=8b6fce63ca91b16386d8f76e82ea87a3c109a208

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