unison/unison-src/transcripts/update-type-nested-decl-aliases.output.md

60 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

``` unison
2024-01-10 01:38:04 +03:00
unique type Foo = Bar Nat
structural type A.B = OneAlias Foo
structural type A = B.TheOtherAlias Foo
```
``` ucm
2024-01-10 01:38:04 +03:00
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`:
structural type A
structural type A.B
type Foo
```
``` ucm
scratch/main> add
2024-01-10 01:38:04 +03:00
⍟ I've added these definitions:
structural type A
structural type A.B
type Foo
```
``` unison
2024-01-10 01:38:04 +03:00
unique type Foo = Bar Nat Nat
```
``` ucm
2024-01-10 01:38:04 +03:00
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 names already exist. You can `update` them to your
new definition:
type Foo
```
``` ucm
scratch/main> update
2024-01-10 01:38:04 +03:00
2024-07-23 20:45:16 +03:00
The type A.B is an alias of A. I'm not able to perform an
update when a type exists nested under an alias of itself.
Please separate them or delete one copy, and then try updating
again.
2024-01-10 01:38:04 +03:00
```