1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-04 17:07:28 +03:00
juvix/tests/positive/ImportShadow/Main.juvix
Łukasz Czajka 161a34c36b
Optional braces in case syntax (#2778)
* Closes #2769 
* Removes old case syntax
* Pretty printing doesn't print braces in `case` if the `case` is a
"top" expression in a definition.
2024-05-22 18:14:03 +01:00

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;