-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5579 from sellout/fix-transcript-error-blocks
transcripts: Reset error state for all blocks
- Loading branch information
Showing
3 changed files
with
58 additions
and
2 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
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,56 @@ | ||
``` ucm :hide | ||
scratch/main> builtins.merge lib.builtin | ||
``` | ||
|
||
A first `:error` block works as expected. | ||
|
||
``` unison :error | ||
foo : Nat | ||
foo = | ||
1 + | ||
``` | ||
|
||
``` ucm :added-by-ucm | ||
Loading changes detected in scratch.u. | ||
I got confused here: | ||
4 | | ||
I was surprised to find an end of section here. | ||
I was expecting one of these instead: | ||
* bang | ||
* do | ||
* false | ||
* force | ||
* handle | ||
* if | ||
* let | ||
* newline or semicolon | ||
* quote | ||
* termLink | ||
* true | ||
* tuple | ||
* typeLink | ||
``` | ||
|
||
Later blocks should have their error state reset. | ||
|
||
``` unison | ||
foo : Nat | ||
foo = | ||
1 + 2 | ||
``` | ||
|
||
``` ucm :added-by-ucm | ||
Loading changes detected in scratch.u. | ||
I found and typechecked these definitions in scratch.u. If you | ||
do an `add` or `update`, here's how your codebase would | ||
change: | ||
⍟ These new definitions are ok to `add`: | ||
foo : Nat | ||
``` |
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