Idris2/tests/idris2/basic016/expected

33 lines
995 B
Plaintext
Raw Normal View History

1/1: Building Eta (Eta.idr)
Error: While processing right hand side of etaBad. When unifying \x, y => MkTest x y = \x, y => MkTest x y and MkTest = \x, y => MkTest x y.
2020-08-18 01:27:49 +03:00
Mismatch between: Nat and Integer.
Eta:14:10--14:14
2021-02-11 20:24:26 +03:00
10 | etaGood3: (f : a -> b) -> f = (\x => f x)
11 | etaGood3 f = Refl
12 |
13 | etaBad : MkTest = (\x : Nat => \y => MkTest ? ?)
2020-07-22 22:16:43 +03:00
14 | etaBad = Refl
2021-02-11 20:24:26 +03:00
^^^^
1/1: Building Eta2 (Eta2.idr)
Error: While processing right hand side of test. When unifying \x => S x = \x => S x and S = \x => S x.
Mismatch between: a and Nat.
Eta2:2:8--2:12
2021-02-11 20:24:26 +03:00
1 | test : Builtin.Equal S (\x : a => S ?)
2020-07-22 22:16:43 +03:00
2 | test = Refl
2021-02-11 20:24:26 +03:00
^^^^
Error: While processing right hand side of test2. When unifying \x => S x = \x => S x and S = \x => S x.
Mismatch between: a and Nat.
Eta2:5:44--5:48
2021-02-11 20:24:26 +03:00
1 | test : Builtin.Equal S (\x : a => S ?)
2 | test = Refl
3 |
4 | test2 : ?
2020-07-22 22:16:43 +03:00
5 | test2 = {a : _} -> the (S = \x : a => S _) Refl
2021-02-11 20:24:26 +03:00
^^^^