mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-17 00:10:31 +03:00
19 lines
465 B
Plaintext
19 lines
465 B
Plaintext
|
1/1: Building tuple (tuple.idr)
|
||
|
Error: While processing left hand side of tupleBug. Can't match on (?_, ?_) as it has a polymorphic type.
|
||
|
|
||
|
tuple:2:11--2:13
|
||
|
1 | tupleBug : Pair () a -> ()
|
||
|
2 | tupleBug (_, _, _) = ()
|
||
|
^^
|
||
|
|
||
|
Error: While processing left hand side of odd. Can't match on () as it has a polymorphic type.
|
||
|
|
||
|
tuple:5:1--5:4
|
||
|
1 | tupleBug : Pair () a -> ()
|
||
|
2 | tupleBug (_, _, _) = ()
|
||
|
3 |
|
||
|
4 | odd : a -> Bool
|
||
|
5 | odd () = False
|
||
|
^^^
|
||
|
|