1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-12 14:28:08 +03:00
juvix/tests/positive/ImportShadow/Main.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

20 lines
250 B
Plaintext

module Main;
open import Nat;
type Unit :=
| unit : Unit;
f : Nat;
f :=
case unit
| is-zero := zero;
f2 : Nat;
f2 :=
case suc zero
| suc is-zero := zero;
f3 : Nat → Nat;
f3 (suc is-zero) := is-zero;
end;