mirror of
https://github.com/unisonweb/unison.git
synced 2024-08-15 13:30:27 +03:00
1.6 KiB
1.6 KiB
a.x.x.x.x = 100
b.x.x.x.x = 100
foo = 25
c.y.y.y.y = foo + 10
d.y.y.y.y = foo + 10
bar = a.x.x.x.x + c.y.y.y.y
Loading changes detected in scratch.u.
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`:
a.x.x.x.x : Nat
b.x.x.x.x : Nat
bar : Nat
c.y.y.y.y : Nat
d.y.y.y.y : Nat
foo : Nat
myproject/main> add
⍟ I've added these definitions:
a.x.x.x.x : Nat
b.x.x.x.x : Nat
bar : Nat
c.y.y.y.y : Nat
d.y.y.y.y : Nat
foo : Nat
foo = +30
Loading changes detected in scratch.u.
I found and typechecked these definitions in scratch.u. If you
do an `add` or `update`, here's how your codebase would
change:
⍟ These names already exist. You can `update` them to your
new definition:
foo : Int
myproject/main> update
Okay, I'm searching the branch for code that needs to be
updated...
That's done. Now I'm making sure everything typechecks...
Typechecking failed. I've updated your scratch file with the
definitions that need fixing. Once the file is compiling, try
`update` again.
foo = +30
-- The definitions below no longer typecheck with the changes above.
-- Please fix the errors and try `update` again.
bar : Nat
bar =
use Nat +
x + c.y.y.y.y
c.y.y.y.y : Nat
c.y.y.y.y =
use Nat +
foo + 10
d.y.y.y.y : Nat
d.y.y.y.y =
use Nat +
foo + 10