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

Instances cannot be resolved if the type contains holes #3157

Open
lukaszcz opened this issue Nov 7, 2024 · 1 comment
Open

Instances cannot be resolved if the type contains holes #3157

lukaszcz opened this issue Nov 7, 2024 · 1 comment

Comments

@lukaszcz
Copy link
Collaborator

lukaszcz commented Nov 7, 2024

For example, type-checking

main : Nat :=
  for (acc := 0) ((x, _) in [1, 1; 2, 2; 3, 3]) {
    acc + x
  };

gives the error:

No trait instance found for: Foldable (List (Pair Nat Nat)) (Pair Nat _)

This is a more fundamental problem with not being able to backtrack on unification in the type checker.

@paulcadman
Copy link
Collaborator

We should tackle this after #3209

@paulcadman paulcadman modified the milestones: 0.6.9, Sanalejo Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants