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

Typechecking of applications ignores expected type #3804

Open
mtzguido opened this issue Mar 24, 2025 · 0 comments
Open

Typechecking of applications ignores expected type #3804

mtzguido opened this issue Mar 24, 2025 · 0 comments

Comments

@mtzguido
Copy link
Member

type natlt (n:nat) = x:nat{ x < n }

let test1 (n:nat) : natlt n -> natlt (n+1) =
  id #_ (fun i -> i+1)

This fails, as when we check the lambda we check against an expected type of ?u1, an unresolved uvar for the #_, and it ends up choosing int as the type of the binder for i.

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