unison/unison-src/transcripts/update-term-aliases-in-different-ways.output.md

80 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

``` ucm
scratch/main> builtins.merge
2023-11-07 21:46:14 +03:00
Done.
```
``` unison
2023-11-07 21:46:14 +03:00
foo : Nat
foo = 5
bar : Nat
bar = 5
```
``` ucm
2023-11-07 21:46:14 +03:00
Loading changes detected in scratch.u.
2023-11-07 21:46:14 +03:00
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`:
bar : Nat
foo : Nat
```
``` ucm
scratch/main> add
2023-11-07 21:46:14 +03:00
⍟ I've added these definitions:
bar : Nat
foo : Nat
```
``` unison
2023-11-07 21:46:14 +03:00
foo : Nat
foo = 6
bar : Nat
bar = 7
```
``` ucm
2023-11-07 21:46:14 +03:00
Loading changes detected in scratch.u.
2023-11-07 21:46:14 +03:00
I found and typechecked these definitions in scratch.u. If you
do an `add` or `update`, here's how your codebase would
change:
⍟ These names already exist. You can `update` them to your
new definition:
bar : Nat
(The old definition is also named foo.)
2023-11-07 21:46:14 +03:00
foo : Nat
(The old definition is also named bar.)
2023-11-07 21:46:14 +03:00
```
``` ucm
scratch/main> update
2023-11-07 21:46:14 +03:00
2023-11-14 06:36:03 +03:00
Okay, I'm searching the branch for code that needs to be
updated...
Done.
scratch/main> view foo bar
2023-11-07 21:46:14 +03:00
bar : Nat
bar = 7
foo : Nat
foo = 6
```