-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sol-driver): fix church encoding tests
- Loading branch information
1 parent
91974b8
commit 19fff4a
Showing
2 changed files
with
167 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
Error: found 1 errors | ||
ββ[unresolved:1:1] | ||
β | ||
1 β | ||
β β | ||
β β°β resolution error: Empty expression representation is not allowed to be used in any contexts | ||
ββββ― | ||
Error: found 64 errors | ||
ββ[repl:1:1] | ||
β | ||
2 β Nat : * = (n : *) -> (n -> n) -> n | ||
β ββ¬ββ β¬ββββ β¬ β¬ β¬ | ||
β β°ββββββββββββββββββββββββββββββ parse error: (missing "return") | ||
β β β β β β | ||
β β°βββββββββββββββββββββββββββββ resolution error: unresolved `function` `* =` | ||
β β β β β | ||
β β°ββββββββββββββββββββββββ parse error: unexpected token(s): n : * | ||
β β β β | ||
β β°βββββββββββββ resolution error: unresolved `type` `n` | ||
β β β | ||
β β°ββββββββ resolution error: unresolved `type` `n` | ||
β β | ||
β β°ββ resolution error: unresolved `type` `n` | ||
β | ||
4 β Succ (prev : Nat) : Nat = |n succ# zero#| | ||
β β¬ β¬ β¬ β¬β | ||
β β°ββββββββββββββββββ resolution error: unresolved `function` `=` | ||
β β β β | ||
β β°βββββββββββββββ resolution error: unresolved `constructor` `n` | ||
β β β | ||
β β°βββββββββ parse error: unexpected token(s): # | ||
β β | ||
β β°βββ parse error: unexpected token(s): # | | ||
5 β succ# (prev n succ# zero#) zero# | ||
β β¬ β¬βββ β¬ β¬ β¬ | ||
β β°βββββββββββββββββββββββββββββ parse error: unexpected token(s): # | ||
β β β β β | ||
β β°ββββββββββββββββββββββββββ resolution error: unresolved `constructor` `prev` | ||
β β β β | ||
β β°βββββββββββββββ parse error: unexpected token(s): # | ||
β β β | ||
β β°βββββββββ parse error: unexpected token(s): # | ||
β β | ||
β β°ββ parse error: unexpected token(s): # | ||
β | ||
7 β Zero : Nat = |n succ# zero#| | ||
β β¬ β¬ β¬ β¬β | ||
β β°ββββββββββββββββββ resolution error: unresolved `function` `=` | ||
β β β β | ||
β β°βββββββββββββββ resolution error: unresolved `constructor` `n` | ||
β β β | ||
β β°βββββββββ parse error: unexpected token(s): # | ||
β β | ||
β β°βββ parse error: unexpected token(s): # | | ||
8 β zero# | ||
β β¬ | ||
β β°ββ parse error: unexpected token(s): # | ||
β | ||
11 β Maybe (t : *) = (a : *) -> (t -> a) a -> a | ||
β β¬ββ β¬ β¬ββ β¬β β¬ β¬β β¬β | ||
β β°ββββββββββββββββββββββββββββββββ parse error: unexpected token(s): : * | ||
β β β β β β β | ||
β β°βββββββββββββββββββββββββββ parse error: unexpected token(s): = | ||
β β β β β β | ||
β β°ββββββββββββββββββββββ parse error: unexpected token(s): : * | ||
β β β β β | ||
β β°βββββββββββββββββ parse error: unexpected token(s): - > | ||
β β β β | ||
β β°βββββββββββββ resolution error: unresolved `constructor` `t` | ||
β β β | ||
β β°βββββββββββ parse error: unexpected token(s): - > | ||
β β | ||
β β°βββ parse error: unexpected token(s): - > | ||
β | ||
13 β Just (value : a) : Maybe a = Just @ |t just# nothing#| | ||
β β¬ββββ β¬ β¬ββββ β¬ β¬ β¬βββ β¬ β¬ β¬ββββ¬ β¬βββββββ¬ | ||
β β°ββββββββββββββββββββββββββββββββββββββββββββββββ resolution error: unresolved `constructor` `value` | ||
β β β β β β β β β β β β | ||
β β°ββββββββββββββββββββββββββββββββββββββββββ parse error: unexpected token(s): : | ||
β β β β β β β β β β β | ||
β β°βββββββββββββββββββββββββββββββββββ resolution error: unresolved `type` `Maybe` | ||
β β β β β β β β β β | ||
β β°βββββββββββββββββββββββββββββ resolution error: unresolved `type` `a` | ||
β β β β β β β β β | ||
β β°βββββββββββββββββββββββββββ resolution error: unresolved `function` `=` | ||
β β β β β β β β | ||
β β°βββββββββββββββββββββββββ resolution error: unresolved `type` `Just` | ||
β β β β β β β | ||
β β°ββββββββββββββββββββ parse error: unexpected token(s): @ | ||
β β β β β β | ||
β β°βββββββββββββββββ resolution error: unresolved `type` `t` | ||
β β β β β | ||
β β°βββββββββββββββ resolution error: unresolved `type` `just` | ||
β β β β | ||
β β°βββββββββββ parse error: unexpected token(s): # | ||
β β β | ||
β β°βββββββββ resolution error: unresolved `type` `nothing` | ||
β β | ||
β β°ββ parse error: unexpected token(s): # | ||
14 β just# value | ||
β β¬ββββ¬ β¬ββββ | ||
β β°ββββββββββββ resolution error: unresolved `type` `just` | ||
β β β | ||
β β°ββββββββ parse error: unexpected token(s): # | ||
β β | ||
β β°ββββββ resolution error: unresolved `type` `value` | ||
β | ||
16 β Nothing : Maybe a = Nothing @ |t just# nothing#| | ||
β β¬ββββ β¬ β¬ β¬ββββββ β¬ β¬β¬ β¬ββββ¬ β¬βββββββ¬β¬ | ||
β β°βββββββββββββββββββββββββββββββββββββββ resolution error: unresolved `type` `Maybe` | ||
β β β β β ββ β β β ββ | ||
β β°βββββββββββββββββββββββββββββββββ resolution error: unresolved `type` `a` | ||
β β β β ββ β β β ββ | ||
β β°βββββββββββββββββββββββββββββββ resolution error: unresolved `function` `=` | ||
β β β ββ β β β ββ | ||
β β°βββββββββββββββββββββββββββββ resolution error: unresolved `type` `Nothing` | ||
β β ββ β β β ββ | ||
β β°βββββββββββββββββββββ parse error: unexpected token(s): @ | ||
β ββ β β β ββ | ||
β β°βββββββββββββββββββ resolution error: unresolved `function` `|` | ||
β β β β β ββ | ||
β β°ββββββββββββββββββ resolution error: unresolved `type` `t` | ||
β β β β ββ | ||
β β°ββββββββββββββββ resolution error: unresolved `type` `just` | ||
β β β ββ | ||
β β°ββββββββββββ parse error: unexpected token(s): # | ||
β β ββ | ||
β β°ββββββββββ resolution error: unresolved `type` `nothing` | ||
β ββ | ||
β β°βββ parse error: unexpected token(s): # | ||
β β | ||
β β°ββ resolution error: unresolved `function` `|` | ||
17 β nothing# | ||
β β¬βββββββ¬ | ||
β β°βββββββββ resolution error: unresolved `type` `nothing` | ||
β β | ||
β β°ββ parse error: unexpected token(s): # | ||
β | ||
19 β Maybe.unwrap (maybe : Maybe a) : a = | ||
β β¬ββββ β¬ β¬ β¬ | ||
β β°βββββββββββββββ resolution error: unresolved `type` `Maybe` | ||
β β β β | ||
β β°βββββββββ resolution error: unresolved `type` `a` | ||
β β β | ||
β β°ββββ resolution error: unresolved `type` `a` | ||
β β | ||
β β°ββ resolution error: unresolved `function` `=` | ||
20 β maybe // match maybe with | ||
β β¬ββββ β | ||
β β°βββββββββββββββββββββββββββ resolution error: unresolved `type` `maybe` | ||
β β | ||
β β°β parse error: (missing simple_identifier) | ||
21 β (|value| value) // Just a => a | ||
β β β¬ββββ β¬ββββ | ||
β β°βββββββββββββββββββ parse error: (missing simple_identifier) | ||
β β β | ||
β β°βββββββββββββ resolution error: unresolved `type` `value` | ||
β β | ||
β β°ββββββ resolution error: unresolved `type` `value` | ||
βββββ― |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters