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

Typeclass on eqtype is not resolved when at the end of a type in lax mode (hence dependency loading) #3286

Closed
TWal opened this issue May 7, 2024 · 1 comment

Comments

@TWal
Copy link
Contributor

TWal commented May 7, 2024

See this minimal repro:

class machin (a:eqtype) = {
  chose: unit;
}

noeq type truc (a:eqtype) {|machin a|} = {
  muche: unit;
}

instance bidule: machin nat = { chose = () }

val toto: truc nat
let toto = {
  muche = ();
}

If we replace eqtype by Type0 then the bug don't appear.
A workaround is to do val toto: truc nat #_

mtzguido added a commit to mtzguido/FStar that referenced this issue May 28, 2024
@mtzguido
Copy link
Member

Thanks Théophile! I had noticed some similar weirdness but didn't have a small repro for it.

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

2 participants