add error for stray, incorrect constructors
This commit is contained in:
10
tests/BadAlt.newt.fail
Normal file
10
tests/BadAlt.newt.fail
Normal 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
|
||||
Reference in New Issue
Block a user