Skip to content

Commit c2fe216

Browse files
committed
Update test_sawcore_type_errors test and expected output.
Partially-applied recursors are now permitted, and no longer cause an error during type checking.
1 parent 5d19148 commit c2fe216

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

intTests/test_sawcore_type_errors/test.log.good

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,6 @@ Stack trace:
2121
.:1:0:
2222
No such data type: ModuleIdentifier Cryptol.String
2323

24-
Recursor not fully applied
25-
== Anticipated failure message ==
26-
Stack trace:
27-
(builtin) in parse_core
28-
test.saw:4:36-4:50 in (callback)
29-
(builtin) in fails
30-
test.saw:4:17-4:54 in parse
31-
test.saw:13:1-13:73 (at top level)
32-
.:1:0:
33-
Recursor not fully applied: ModuleIdentifier Prelude.Either
34-
3524
Not a sort (lambda)
3625
== Anticipated failure message ==
3726
Stack trace:

intTests/test_sawcore_type_errors/test.saw

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ parse "false";
99
print "No such data type";
1010
parse "String#rec Bool True False";
1111

12-
print "Recursor not fully applied";
13-
parse "Either#rec Bool Nat (\\ (_ : Either Bool Nat) -> Bool) (id Bool)";
12+
// Partially-applied recursors are permitted
13+
// print (parse_core "Either#rec Bool Nat (\\ (_ : Either Bool Nat) -> Bool) (id Bool)");
1414

1515
print "Not a sort (lambda)";
1616
parse "\\(x : True) -> x";

0 commit comments

Comments
 (0)