lean2/tests/lean/t9.lean
2014-10-02 17:55:34 -07:00

20 lines
388 B
Text

precedence `+` : 65
precedence `*` : 75
precedence `=` : 50
precedence `≃` : 50
constant N : Type.{1}
constant a : N
constant b : N
constant add : N → N → N
constant mul : N → N → N
namespace foo
infixl + := add
infixl * := mul
check a+b*a
end foo
-- Notation is not avaiable outside the namespace
check a+b*a
namespace foo
-- Notation is restored
check a+b*a
end foo