Case split with non-trivial RHS should either be disallowed or do the right thing #2800
Labels
scope
Issues relating to scope checking
type: bug
Issues and pull requests about actual bugs
ux: case splitting
Issues relating to the case split ("C-c C-c") command
ux: interaction
Issues to do with interactive development (holes, case splitting, etc)
Milestone
Currently, Agda allows me to perform a case split on
x
in this example:However, the resulting code is not type-correct:
We should either disallow this again or (preferably) substitute
x
withzero
andsuc x
in the respective clauses.The text was updated successfully, but these errors were encountered: