1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-12 14:28:08 +03:00
juvix/tests/positive/ImportShadow/Nat.juvix
janmasrovira 098c256da8
Allow shadowing local variables with let function definitions (#1847)
Co-authored-by: Paul Cadman <git@paulcadman.dev>
2023-02-22 10:26:54 +01:00

16 lines
225 B
Plaintext

module Nat;
type Bool :=
| true : Bool
| false : Bool;
type Nat :=
| zero : Nat
| suc : Nat → Nat;
is-zero : Nat → Bool;
is-zero n :=
case n
| zero := true
| suc _ := false;
end;