Open pchiusano opened 11 months ago
Yikes, unexpected. Thanks for the report.
A simple case doesn't crash:
```ucm:hide
.> project.create test
unique type Foo = A | B
test/main> add
unique type Foo = A | B | C
test/main> update
This case also doesn't crash, but does print an error asking you to add constructors for Bar
```ucm:hide
.> project.create test
unique type Foo = A | B
test/main> add
test/main> alias.type Foo Bar
unique type Bar = A | B | C
test/main> update
This does reproduce it, though it's a long-ish download:
```ucm:hide
.> clone @kylegoetz/huenison/fromjust-bug
unique type model.ResourceId
= ResourceId.internal (Text, Text, Text, Text, Text)
@kylegoetz/huenison/fromjust-bug> update
Note that this repro does not add a constructor, it just renames one.
Reported by Kyle Goetz