mirror of
https://github.com/anoma/juvix.git
synced 2024-12-04 06:23:13 +03:00
161a34c36b
* Closes #2769 * Removes old case syntax * Pretty printing doesn't print braces in `case` if the `case` is a "top" expression in a definition.
17 lines
240 B
Plaintext
17 lines
240 B
Plaintext
module Main;
|
|
|
|
import Nat open;
|
|
|
|
type Unit := unit : Unit;
|
|
|
|
f : Nat := case unit of is-zero := zero;
|
|
|
|
f2 : Nat :=
|
|
case suc zero of
|
|
| suc is-zero := zero
|
|
| _ := zero;
|
|
|
|
f3 : Nat → Nat
|
|
| (suc is-zero) := is-zero
|
|
| zero := zero;
|