Idris2/tests/idris2/interface008/expected
Mathew Polzin 7b19099763
print location of implicit name shadowing with the warning. (#1968)
* print location of implicit name shadowing with the warning.

* move location output to bottom of warning.
2021-10-03 10:15:01 +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
^