mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-21 07:17:25 +03:00
41 lines
726 B
Markdown
41 lines
726 B
Markdown
See [this ticket](https://github.com/unisonweb/unison/issues/873); the point being, this shouldn't crash the runtime. :)
|
|
|
|
```unison
|
|
(-) = builtin.Nat.sub
|
|
```
|
|
|
|
```ucm
|
|
|
|
I found and typechecked these definitions in scratch.u. If you
|
|
do an `add` or `update`, here's how your codebase would
|
|
change:
|
|
|
|
⍟ These new definitions are ok to `add`:
|
|
|
|
- : Nat -> Nat -> Int
|
|
|
|
```
|
|
```ucm
|
|
.> add
|
|
|
|
⍟ I've added these definitions:
|
|
|
|
- : Nat -> Nat -> Int
|
|
|
|
```
|
|
```unison
|
|
baz x = x - 1
|
|
```
|
|
|
|
```ucm
|
|
|
|
I found and typechecked these definitions in scratch.u. If you
|
|
do an `add` or `update`, here's how your codebase would
|
|
change:
|
|
|
|
⍟ These new definitions are ok to `add`:
|
|
|
|
baz : Nat -> Int
|
|
|
|
```
|