Idris2/tests/idris2/interface/interface008/expected
2023-09-07 14:57:22 +01:00

24 lines
610 B
Plaintext

1/1: Building Deps (Deps.idr)
Warning: We are about to implicitly bind the following lowercase names.
You may be unintentionally shadowing the associated global definitions:
card is shadowing Main.card
Deps:15:3--15:8
11 | to = id
12 |
13 | interface BadFinite t where
14 | badcard : Nat
15 | badto : t -> Fin card
^^^^^
Error: While processing right hand side of badcard. k is not accessible in this context.
Deps:18:13--18:14
14 | badcard : Nat
15 | badto : t -> Fin card
16 |
17 | implementation BadFinite (Fin k) where
18 | badcard = k
^