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

25 lines
202 B
Markdown

```ucm
scratch/main> builtins.merge
```
```unison
foo : Nat
foo = 5
bar : Nat
bar = foo + 10
```
```ucm
scratch/main> add
```
```unison
foo : Int
foo = +5
```
```ucm:error
scratch/main> update
```