lean2/tests/lean/overload1.lean
Leonardo de Moura 9f08156a73 feat(frontends/lean/parser): combine Echo and Show commands into the 'print' command
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 11:03:35 -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