Idris2/tests/idris2/interactive/interactive042/Issue35.idr

11 lines
253 B
Idris
Raw Normal View History

test : {a : Nat} -> (b : Nat) -> a === b -> Nat
test a eq = ?a
data Vect : Nat -> Type -> Type where
Nil : Vect 0 a
(::) : a -> Vect n a -> Vect (S n) a
append : Vect n a -> Vect m a -> Vect (n + m) a
append [] ys = ys
append (x :: xs) ys = ?help