mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 02:25:39 +03:00
20 lines
440 B
Markdown
20 lines
440 B
Markdown
If `foo#old` exists in old, and `foo#new` exists in new, you might think `upgrade old new` would rewrite references to
|
|
`#old` with references to `#new`. And it will... !!unless!! `#old` still exists in new.
|
|
|
|
```ucm:hide
|
|
foo/main> builtins.merge lib.builtin
|
|
```
|
|
|
|
```unison
|
|
lib.old.foo = 18
|
|
lib.new.other = 18
|
|
lib.new.foo = 19
|
|
mything = lib.old.foo + lib.old.foo
|
|
```
|
|
|
|
```ucm
|
|
foo/main> add
|
|
foo/main> upgrade old new
|
|
foo/main> view mything
|
|
```
|