Idris2/tests/idris2/warning001/Holes.idr

11 lines
249 B
Idris
Raw Normal View History

test : List Nat -> List Nat
test [] = []
test (n :: ns) = ?n :: ns
replicate : (n : Nat) -> a -> List a
replicate Z a = []
replicate (S n) a = a :: replicate n a
testReplicate : test (replicate (1+n) k) === replicate (2+n) k
testReplicate = ?goal