mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-16 15:52:43 +03:00
15 lines
371 B
Plaintext
15 lines
371 B
Plaintext
1/1: Building Cover (Cover.idr)
|
|
Error: While processing left hand side of bad. Can't match on Just (fromInteger 0) as it has a polymorphic type.
|
|
|
|
Cover.idr:14:1--14:4
|
|
10 |
|
|
11 | bad : a -> Foo a -> Bool
|
|
12 | bad Z IsNat = False
|
|
13 | bad True IsBool = True
|
|
14 | bad (Just 0) _ = False
|
|
^^^
|
|
|
|
Main> Main.okay: okay (S _) IsNat
|
|
okay False IsBool
|
|
Main> Bye for now!
|