2023-11-08 18:15:05 +03:00
```ucm:hide
2024-06-12 01:22:09 +03:00
scratch/main> builtins.merge lib.builtin
2023-11-08 18:15:05 +03:00
```
```unison
unique type Foo = Bar Nat
```
```ucm
2024-06-12 01:22:09 +03:00
scratch/main> add
scratch/main> move.term Foo.Bar Stray.Bar
2023-11-08 18:15:05 +03:00
```
2023-11-14 20:21:40 +03:00
Now we've set up a situation where the constructor is not where it's supposed to be; it's somewhere else.
2023-11-08 18:15:05 +03:00
```unison
unique type Foo = Bar Nat Nat
```
2023-11-14 20:21:40 +03:00
Note that the constructor name shown here (implied to be called `Foo.Stray.Bar` ) doesn't really exist, it's just showing up due to a pretty-printer bug.
2023-11-08 18:15:05 +03:00
2023-11-14 20:21:40 +03:00
```ucm:error
2024-06-12 01:22:09 +03:00
scratch/main> view Foo
scratch/main> update
2023-11-14 20:21:40 +03:00
```