mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 01:01:59 +03:00
17 lines
386 B
Plaintext
17 lines
386 B
Plaintext
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
|
|
12 | cty Nat (S _) = S Z
|
|
13 | cty _ x = S (S Z)
|
|
14 |
|
|
15 | badBar : a -> Nat
|
|
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!
|