unison/unison-src/transcripts/update-type-nested-decl-aliases.output.md
2024-07-23 13:45:16 -04:00

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.