Idris2/tests/idris2/reg041/expected

19 lines
465 B
Plaintext
Raw Normal View History

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
^^^