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

Indexed families should fast-fail rather than spin forever #28

Open
Equilibris opened this issue Jul 2, 2024 · 0 comments
Open

Indexed families should fast-fail rather than spin forever #28

Equilibris opened this issue Jul 2, 2024 · 0 comments

Comments

@Equilibris
Copy link
Collaborator

Equilibris commented Jul 2, 2024

In the current system, one can write:

data QpfList2 α
  | nil
  | cons : α → QpfList2 Bool → QpfList2 α
                        ^^^^

Notice the improper use of Bool, which means this definition of QpfList2 uses α as an index.

This should throw an error, instead, currently this causes the elaborator to spin forever.

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