lean2/tests/lean/push.lean
Leonardo de Moura 79fa6e4940 feat(frontends/lean): Scopes in the default Lean frontend
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-18 17:40:21 -08:00

21 lines
No EOL
288 B
Text

Variable first : Bool
Push
Variables a b c : Int
Variable f : Int -> Int
Eval f a
Pop
Eval f a (* should produce an error *)
Show Environment 1
Push
Infixl 100 ++ : Int::add
Check 10 ++ 20
Pop
Check 10 ++ 20 (* should produce an error *)
Pop (* should produce an error *)