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

23 lines
193 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
```
```ucm
scratch/main> add
2023-11-07 21:46:14 +03:00
```
```unison
foo : Int
foo = +5
```
```ucm
scratch/main> update
scratch/main> view foo
2023-11-07 21:46:14 +03:00
```