check impossible clauses

Also clean up some comments.

We now have types in constraints, but are still using values from
context.
This commit is contained in:
2025-11-14 21:45:19 -08:00
parent 79113fbce5
commit 63687499dc
10 changed files with 169 additions and 153 deletions

10
tests/Possible.newt.fail Normal file
View File

@@ -0,0 +1,10 @@
*** Process tests/Possible.newt
module Prelude
module Possible
ERROR at tests/Possible.newt:6:5--6:8: possible constructors: Prelude.Z, Prelude.S
foo : Nat → Nat
foo ()
^^^
Compile failed