mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 12:14:26 +03:00
7aee7c9b7c
Why: * To implement robust cross-project go-to-definition in LSP i.e you can jump to definition of any global name coming from library dependencies, as well as from the local project files. What it does: * Modify `FC`s to carry `ModuleIdent` for .idr sources, file name for .ipkg sources or nothing for interactive runs. * Add `--install-with-src` to install the source code alongside the ttc binaries. The source is installed into the same directory as the corresponding ttc file. Installed sources are made read-only. * As we install the sources pinned to the related ttc files we gain the versioning of sources for free.
42 lines
980 B
Plaintext
42 lines
980 B
Plaintext
1/1: Building UnboundImplicits (UnboundImplicits.idr)
|
|
Error: While processing constructor Foo. Undefined name n.
|
|
|
|
UnboundImplicits:6:22--6:23
|
|
2 | import Data.Vect
|
|
3 |
|
|
4 | %unbound_implicits off
|
|
5 |
|
|
6 | record Foo (x : Vect n Nat) where
|
|
^
|
|
|
|
Error: Undefined name n.
|
|
|
|
UnboundImplicits:9:24--9:25
|
|
5 |
|
|
6 | record Foo (x : Vect n Nat) where
|
|
7 | constructor MkFoo
|
|
8 |
|
|
9 | parameters (Foo : Vect n Nat)
|
|
^
|
|
|
|
Error: While processing constructor Foo. Undefined name n.
|
|
|
|
UnboundImplicits:14:25--14:26
|
|
10 | bar : Nat
|
|
11 | bar = 0
|
|
12 |
|
|
13 |
|
|
14 | interface Foo (a : Vect n Nat) where
|
|
^
|
|
|
|
Error: While processing type of Functor implementation at UnboundImplicits:17:1--17:38. Undefined name n.
|
|
|
|
UnboundImplicits:17:30--17:31
|
|
13 |
|
|
14 | interface Foo (a : Vect n Nat) where
|
|
15 | baz : Nat
|
|
16 |
|
|
17 | implementation Functor (Vect n) where
|
|
^
|
|
|