1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-13 19:49:20 +03:00
juvix/tests/positive/LetShadow.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

17 lines
217 B
Plaintext

module LetShadow;
type Nat :=
| zero : Nat
| suc : Nat → Nat;
type Unit :=
| unit : Unit;
t : Nat;
t :=
case unit
| x :=
let
x : Nat := suc zero;
in x;
end;