mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 10:35:57 +03:00
This is for consistency with the `cmark` style. Now the blocks we still pretty-print ourselves will match the bulk of them that `cmark` produces.
32 lines
571 B
Markdown
32 lines
571 B
Markdown
# Namespace deletion regression test
|
|
|
|
See https://github.com/unisonweb/unison/issues/1552
|
|
|
|
If branch operations aren't performed in the correct order it's possible to end up with unexpected results.
|
|
|
|
Previously the following sequence delete the current namespace
|
|
unexpectedly 😬.
|
|
|
|
``` ucm
|
|
scratch/main> alias.term ##Nat.+ Nat.+
|
|
|
|
Done.
|
|
|
|
scratch/main> ls Nat
|
|
|
|
1. + (##Nat -> ##Nat -> ##Nat)
|
|
|
|
scratch/main> move.namespace Nat Nat.operators
|
|
|
|
Done.
|
|
|
|
scratch/main> ls Nat
|
|
|
|
1. operators/ (1 term)
|
|
|
|
scratch/main> ls Nat.operators
|
|
|
|
1. + (##Nat -> ##Nat -> ##Nat)
|
|
|
|
```
|