Idris2/tests/idris2/basic014/expected
Ruslan Feizerakhmanov 7aee7c9b7c
[ new ] --install-with-src; refactoring around FCs (#1450)
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.
2021-06-05 12:53:22 +01:00

22 lines
861 B
Plaintext

1/1: Building Rewrite (Rewrite.idr)
Error: While processing right hand side of wrongCommutes. Rewriting by m + k = k + m did not change type S k + m = m + S k.
Rewrite:15:25--15:57
11 | plusCommutes (S k) m = rewrite plusCommutes k m in sym (plusnSm m k)
12 |
13 | wrongCommutes : (n, m : Nat) -> n + m = m + n
14 | wrongCommutes Z m = sym (plusnZ m)
15 | wrongCommutes (S k) m = rewrite plusCommutes m k in ?bar
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: While processing right hand side of wrongCommutes2. Nat is not a rewrite rule type.
Rewrite:19:26--19:43
15 | wrongCommutes (S k) m = rewrite plusCommutes m k in ?bar
16 |
17 | wrongCommutes2 : (n, m : Nat) -> n + m = m + n
18 | wrongCommutes2 Z m = sym (plusnZ m)
19 | wrongCommutes2 (S k) m = rewrite m in ?bar
^^^^^^^^^^^^^^^^^