lean2/tests/lean/overload1.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

12 lines
No EOL
278 B
Text

variable N : Type
variable f : Bool -> Bool -> Bool
variable g : N -> N -> N
infixl 10 ++ : f
infixl 10 ++ : g
print true ++ false ++ true
setoption lean::pp::notation false
print true ++ false ++ true
variable a : N
variable b : N
print a ++ b ++ a
print true ++ false ++ false