Idris2/tests/idris2/error/error001/Error.idr
2023-09-07 14:57:22 +01:00

7 lines
163 B
Idris

data Vect : Nat -> Type -> Type where
Nil : Vect Z a
(::) : a -> Vect k a -> Vect (S k) a
wrong : a -> Vect (S n) a -> Vect (S n) a
wrong x xs = x :: x