lean4-htt/tests/lean/push.lean
Leonardo de Moura 028a9bd9bd feat(frontends/lean/scanner): use Lua style comments in Lean
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 08:53:27 -08:00

22 lines
No EOL
291 B
Text

Import Int.
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