unison/unison-src/transcripts/update-type-nested-decl-aliases.md
2024-06-25 11:11:07 -07:00

541 B

scratch/main> builtins.merge lib.builtin
unique type Foo = Bar Nat

structural type A.B = OneAlias Foo
structural type A = B.TheOtherAlias Foo
scratch/main> add
unique type Foo = Bar Nat Nat

Bug: we want this update to be rejected earlier, because it violates the "decl coherency" precondition that there's only one name for each constructor. We instead get too far in the update process, and are delivered a bogus scratch.u file to stare at.

scratch/main> update