Idris2/tests/idris2/reg013/expected

42 lines
980 B
Plaintext
Raw Normal View History

1/1: Building UnboundImplicits (UnboundImplicits.idr)
Error: While processing constructor Foo. Undefined name n.
UnboundImplicits:6:22--6:23
2021-02-11 20:24:26 +03:00
2 | import Data.Vect
3 |
4 | %unbound_implicits off
5 |
2020-07-22 22:16:43 +03:00
6 | record Foo (x : Vect n Nat) where
2021-02-11 20:24:26 +03:00
^
Error: Undefined name n.
UnboundImplicits:9:24--9:25
2021-02-11 20:24:26 +03:00
5 |
6 | record Foo (x : Vect n Nat) where
7 | constructor MkFoo
8 |
2020-07-22 22:16:43 +03:00
9 | parameters (Foo : Vect n Nat)
2021-02-11 20:24:26 +03:00
^
Error: While processing constructor Foo. Undefined name n.
UnboundImplicits:14:25--14:26
2021-02-11 20:24:26 +03:00
10 | bar : Nat
11 | bar = 0
12 |
13 |
2020-07-22 22:16:43 +03:00
14 | interface Foo (a : Vect n Nat) where
2021-02-11 20:24:26 +03:00
^
Error: While processing type of Functor implementation at UnboundImplicits:17:1--17:38. Undefined name n.
UnboundImplicits:17:30--17:31
2021-02-11 20:24:26 +03:00
13 |
14 | interface Foo (a : Vect n Nat) where
15 | baz : Nat
16 |
2020-07-22 22:16:43 +03:00
17 | implementation Functor (Vect n) where
2021-02-11 20:24:26 +03:00
^