-
Notifications
You must be signed in to change notification settings - Fork 274
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 #5568 from unisonweb/25-02-04-fix-4536
- Loading branch information
Showing
6 changed files
with
148 additions
and
26 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
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,128 @@ | ||
``` ucm | ||
scratch/main> builtins.merge lib.builtin | ||
Done. | ||
``` | ||
|
||
``` unison :error | ||
foo : Nat | ||
foo = | ||
use Nat .+ | ||
1 + 2 | ||
``` | ||
|
||
``` ucm :added-by-ucm | ||
Loading changes detected in scratch.u. | ||
I got confused here: | ||
3 | use Nat .+ | ||
I was surprised to find a '.' here. | ||
I was expecting one of these instead: | ||
* bang | ||
* binding | ||
* do | ||
* false | ||
* force | ||
* handle | ||
* if | ||
* lambda | ||
* let | ||
* newline or semicolon | ||
* pattern | ||
* quote | ||
* termLink | ||
* true | ||
* tuple | ||
* typeLink | ||
``` | ||
|
||
``` unison :error | ||
namespace .foo | ||
``` | ||
|
||
``` ucm :added-by-ucm | ||
Loading changes detected in scratch.u. | ||
I got confused here: | ||
1 | namespace .foo | ||
I was surprised to find a .foo here. | ||
``` | ||
|
||
``` unison :error | ||
unique[.foo] type Foo = Foo | ||
``` | ||
|
||
``` ucm :added-by-ucm | ||
Loading changes detected in scratch.u. | ||
I got confused here: | ||
1 | unique[.foo] type Foo = Foo | ||
I was surprised to find a .foo here. | ||
``` | ||
|
||
``` unison :error | ||
.foo> 17 | ||
``` | ||
|
||
``` ucm :added-by-ucm | ||
Loading changes detected in scratch.u. | ||
This looks like the start of an expression here | ||
1 | .foo> 17 | ||
but at the file top-level, I expect one of the following: | ||
- A binding, like .foo = 42 OR | ||
.foo : Nat | ||
.foo = 42 | ||
- A watch expression, like > .foo + 1 | ||
- An `ability` declaration, like unique ability Foo where ... | ||
- A `type` declaration, like structural type Optional a = None | Some a | ||
``` | ||
|
||
``` unison :error | ||
foo.> 17 | ||
``` | ||
|
||
``` ucm :added-by-ucm | ||
Loading changes detected in scratch.u. | ||
I got confused here: | ||
1 | foo.> 17 | ||
I was surprised to find a foo.> here. | ||
I was expecting one of these instead: | ||
* ability | ||
* bang | ||
* binding | ||
* do | ||
* false | ||
* force | ||
* handle | ||
* if | ||
* lambda | ||
* let | ||
* namespace | ||
* newline or semicolon | ||
* quote | ||
* termLink | ||
* true | ||
* tuple | ||
* type | ||
* typeLink | ||
* use | ||
``` |
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