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.
15 lines
183 B
Plaintext
15 lines
183 B
Plaintext
module LetShadow;
|
|
|
|
type Nat :=
|
|
| zero : Nat
|
|
| suc : Nat → Nat;
|
|
|
|
type Unit := unit : Unit;
|
|
|
|
t : Nat :=
|
|
case unit of
|
|
x :=
|
|
let
|
|
x : Nat := suc zero;
|
|
in x;
|