unison/unison-src/transcripts/update-term-with-dependent-to-different-type.md

25 lines
202 B
Markdown
Raw Permalink Normal View History

2023-11-07 21:46:14 +03:00
```ucm
scratch/main> builtins.merge
2023-11-07 21:46:14 +03:00
```
```unison
foo : Nat
foo = 5
bar : Nat
bar = foo + 10
```
```ucm
scratch/main> add
2023-11-07 21:46:14 +03:00
```
```unison
foo : Int
foo = +5
```
```ucm:error
scratch/main> update
2023-11-07 21:46:14 +03:00
```