mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 10:35:57 +03:00
1.1 KiB
1.1 KiB
unique type Foo = Bar Nat
structural type A.B = OneAlias Foo
structural type A = B.TheOtherAlias Foo
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
scratch/main> add
⍟ I've added these definitions:
structural type A
structural type A.B
type Foo
unique type Foo = Bar Nat Nat
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
scratch/main> update
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.