unison/unison-src/transcripts/update-type-with-dependent-term.md
2024-06-25 11:11:07 -07:00

23 lines
269 B
Markdown

```ucm:hide
scratch/main> builtins.merge lib.builtin
```
```unison
unique type Foo = Bar Nat
incrFoo : Foo -> Foo
incrFoo = cases Bar n -> Bar (n+1)
```
```ucm
scratch/main> add
```
```unison
unique type Foo = Bar Nat Nat
```
```ucm:error
scratch/main> update
```