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

Erased type-casing function seen as total when it's not #3357

Open
gallais opened this issue Jul 26, 2024 · 0 comments
Open

Erased type-casing function seen as total when it's not #3357

gallais opened this issue Jul 26, 2024 · 0 comments

Comments

@gallais
Copy link
Member

gallais commented Jul 26, 2024

I suspect the issue is that we see {0 a : Type} and assume for coverage
checking purposes that a = Nat is a forced pattern rather than a type case.

%default total

0 oops : {0 a : Type} -> a
oops {a = Nat} = Z

boom : Void
boom = void oops
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

1 participant