-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e38eebb
commit 1a59338
Showing
5 changed files
with
72 additions
and
4 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,14 @@ | ||
```ucm | ||
scratch/main> builtins.merge lib.builtins | ||
``` | ||
|
||
```unison:error | ||
missingDo : 'Nat | ||
missingDo = 2 | ||
``` | ||
|
||
```unison:error | ||
superfluousDo : Nat | ||
superfluousDo = do | ||
2 | ||
``` |
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,54 @@ | ||
``` ucm | ||
scratch/main> builtins.merge lib.builtins | ||
Done. | ||
``` | ||
``` unison | ||
missingDo : 'Nat | ||
missingDo = 2 | ||
``` | ||
|
||
``` ucm | ||
Loading changes detected in scratch.u. | ||
I found a value of type: Nat | ||
where I expected to find: Unit -> Nat | ||
1 | missingDo : 'Nat | ||
2 | missingDo = 2 | ||
from right here: | ||
2 | missingDo = 2 | ||
I expected the expression to be delayed, but it was not. | ||
Are you missing a `do`? | ||
``` | ||
``` unison | ||
superfluousDo : Nat | ||
superfluousDo = do | ||
2 | ||
``` | ||
|
||
``` ucm | ||
Loading changes detected in scratch.u. | ||
I found a value of type: Unit ->{𝕖} Nat | ||
where I expected to find: Nat | ||
1 | superfluousDo : Nat | ||
2 | superfluousDo = do | ||
3 | 2 | ||
from right here: | ||
3 | 2 | ||
I didn't expect this expression to be delayed, but it was. | ||
Are you using a `do` where you don't need one, | ||
or are you missing a `()` to force an expression? | ||
``` |
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