mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-21 02:31:50 +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.
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
1/1: Building gnu (gnu.idr)
|
|
Error: While processing right hand side of TestSurprise1. Multiple solutions found in search of:
|
|
Gnu
|
|
|
|
gnu:47:27--47:32
|
|
43 |
|
|
44 | ||| This is the meat. I'd expect this function to raise an error
|
|
45 | ||| because it is ambiguous which local/local function to use.
|
|
46 | TestSurprise1 : (gnu1, gnu2 : Gnu) -> String
|
|
47 | TestSurprise1 gnu1 gnu2 = Guess
|
|
^^^^^
|
|
|
|
Possible correct results:
|
|
gnu1
|
|
gnu2
|
|
Error: While processing right hand side of TestSurprise2. Multiple solutions found in search of:
|
|
Gnu
|
|
|
|
gnu:50:21--50:26
|
|
46 | TestSurprise1 : (gnu1, gnu2 : Gnu) -> String
|
|
47 | TestSurprise1 gnu1 gnu2 = Guess
|
|
48 |
|
|
49 | TestSurprise2 : (f,g : Unit -> Gnu) -> String
|
|
50 | TestSurprise2 f g = Guess
|
|
^^^^^
|
|
|
|
Possible correct results:
|
|
f ()
|
|
g ()
|
|
Error: While processing right hand side of TestSurprise3. Can't find an implementation for Gnu.
|
|
|
|
gnu:53:19--53:24
|
|
49 | TestSurprise2 : (f,g : Unit -> Gnu) -> String
|
|
50 | TestSurprise2 f g = Guess
|
|
51 |
|
|
52 | TestSurprise3 : (Unit -> Gnu, Unit -> Gnu) -> String
|
|
53 | TestSurprise3 f = Guess
|
|
^^^^^
|
|
|