forked from unisonweb/unison
-
-
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.
Replicate failure from unisonweb#4898
- Loading branch information
Showing
2 changed files
with
75 additions
and
0 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,17 @@ | ||
```ucm | ||
.> builtins.merge | ||
``` | ||
|
||
```unison | ||
double : Int -> Int | ||
double x = x + x | ||
redouble : Int -> Int | ||
redouble x = double x + double x | ||
``` | ||
|
||
```ucm | ||
.> add | ||
.> dependents double | ||
.> delete.term 1 | ||
``` |
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,58 @@ | ||
```ucm | ||
.> builtins.merge | ||
Done. | ||
``` | ||
```unison | ||
double : Int -> Int | ||
double x = x + x | ||
redouble : Int -> Int | ||
redouble x = double x + double x | ||
``` | ||
|
||
```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`: | ||
double : Int -> Int | ||
redouble : Int -> Int | ||
``` | ||
```ucm | ||
.> add | ||
⍟ I've added these definitions: | ||
double : Int -> Int | ||
redouble : Int -> Int | ||
.> dependents double | ||
Dependents of: double | ||
Terms: | ||
1. redouble | ||
Tip: Try `view 1` to see the source of any numbered item in | ||
the above list. | ||
.> delete.term 1 | ||
``` | ||
|
||
|
||
|
||
🛑 | ||
|
||
The transcript failed due to an error in the stanza above. The error is: | ||
|
||
Expected a name, but the numbered arg resulted in #1gupumeruksjs4sb5mg8jcb891dmbufmqrfblfss1sevbl62fr7oud24mpo03jm2qlbdt6ntordsmfj1jovhfsp3mij461odaahfh2g, which is a reference. |