lean2/tests/lean/push.lean
Leonardo de Moura 4ba097a141 feat(frontends/lean): use lowercase commands, replace 'endscope' and 'endnamespace' with 'end'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 13:06:36 -08:00

22 lines
No EOL
315 B
Text

import Int.
variable first : Bool
scope
variables a b c : Int
variable f : Int -> Int
eval f a
pop::scope
eval f a -- should produce an error
print environment 1
scope
infixl 100 ++ : Int::add
check 10 ++ 20
pop::scope
check 10 ++ 20 -- should produce an error
pop::scope -- should produce an error