Add error when a constructor is used for a primitive argument.

Add testing for errors.
This commit is contained in:
2025-10-06 15:20:44 -07:00
parent 207d7afecf
commit be40c431fe
5 changed files with 62 additions and 34 deletions

8
tests/LitConCase.newt Normal file
View File

@@ -0,0 +1,8 @@
module LitConCase
data Unit = MkUnit
foo : Int Unit
foo 0 = MkUnit
foo MkUnit = MkUnit
foo _ = MkUnit