add error for stray, incorrect constructors

This commit is contained in:
2025-10-10 09:03:25 -07:00
parent 78b9f958de
commit 2a5e5ae4f5
3 changed files with 20 additions and 30 deletions

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

@@ -0,0 +1,10 @@
*** Process tests/BadAlt.newt
module Prelude
module BadAlt
ERROR at tests/BadAlt.newt:(6, 9): Prelude._:<_ not a constructor for (Prelude.List Prim.Int)
foo : List Int → Int
foo (xs :< x) = x
^
Compile failed