mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 10:35:57 +03:00
fixes doubleSpace issue
This commit is contained in:
parent
79ad0fa8df
commit
5da63ec4f1
@ -10,8 +10,8 @@ Let's set up some definitions to start:
|
||||
x = 1
|
||||
y = 2
|
||||
|
||||
structural type X = One Nat
|
||||
structural type Y = Two Nat Nat
|
||||
structural type X = One Nat
|
||||
structural type Y = Two Nat Nat
|
||||
```
|
||||
|
||||
Expected: `x` and `y`, `X`, and `Y` exist as above. UCM tells you this.
|
||||
@ -25,7 +25,7 @@ Let's add an alias for `1` and `One`:
|
||||
```unison
|
||||
z = 1
|
||||
|
||||
structural type Z = One Nat
|
||||
structural type Z = One Nat
|
||||
```
|
||||
|
||||
Expected: `z` is now `1`. UCM tells you that this definition is also called `x`.
|
||||
@ -39,7 +39,7 @@ Let's update something that has an alias (to a value that doesn't have a name al
|
||||
|
||||
```unison
|
||||
x = 3
|
||||
structural type X = Three Nat Nat Nat
|
||||
structural type X = Three Nat Nat Nat
|
||||
```
|
||||
|
||||
Expected: `x` is now `3` and `X` has constructor `Three`. UCM tells you the old definitions were also called `z` and `Z` and these names have also been updated.
|
||||
@ -52,7 +52,7 @@ Update it to something that already exists with a different name:
|
||||
|
||||
```unison
|
||||
x = 2
|
||||
structural type X = Two Nat Nat
|
||||
structural type X = Two Nat Nat
|
||||
```
|
||||
|
||||
Expected: `x` is now `2` and `X` is `Two`. UCM says the old definition was also named `z/Z`, and was also updated. And it says the new definition is also named `y/Y`.
|
||||
|
@ -10,8 +10,8 @@ Let's set up some definitions to start:
|
||||
x = 1
|
||||
y = 2
|
||||
|
||||
structural type X = One Nat
|
||||
structural type Y = Two Nat Nat
|
||||
structural type X = One Nat
|
||||
structural type Y = Two Nat Nat
|
||||
```
|
||||
|
||||
```ucm
|
||||
|
Loading…
Reference in New Issue
Block a user