Idris2/tests/idris2/coverage003/expected

17 lines
386 B
Plaintext
Raw Normal View History

1/1: Building Cover (Cover.idr)
Error: While processing left hand side of badBar. Can't match on 0 as it must have a polymorphic type.
Cover:16:8--16:9
2021-02-11 20:24:26 +03:00
12 | cty Nat (S _) = S Z
13 | cty _ x = S (S Z)
14 |
15 | badBar : a -> Nat
2020-07-22 22:16:43 +03:00
16 | badBar Z = Z
^
Main> Main.foo: foo (0, S _)
foo (S _, _)
Main> Main.bar: bar _
Main> Main.cty: All cases covered
Main> Bye for now!