mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 20:23:11 +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.
19 lines
580 B
Plaintext
19 lines
580 B
Plaintext
1/1: Building Dots1 (Dots1.idr)
|
|
1/1: Building Dots2 (Dots2.idr)
|
|
Error: While processing left hand side of foo. Can't match on ?x [no locals in scope] (Non linear pattern variable).
|
|
|
|
Dots2:2:7--2:8
|
|
1 | foo : Int -> Int -> Int
|
|
2 | foo x x = x + x
|
|
^
|
|
|
|
1/1: Building Dots3 (Dots3.idr)
|
|
Error: While processing left hand side of addBaz. Pattern variable z unifies with: ?y [no locals in scope].
|
|
|
|
Dots3:5:13--5:30
|
|
|
|
|
5 | addBaz (x + y) (AddThings x z) = x + y
|
|
| ^ ^
|
|
|
|
Suggestion: Use the same name for both pattern variables, since they unify.
|