Idris2/tests/idris2/warning/warning001/Holes.idr
2023-09-07 14:57:22 +01:00

11 lines
249 B
Idris

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