lean2/tests/lean/t13.lean
Leonardo de Moura 27130c9499 feat(frontends/lean): local notation 'shadows' global one
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-15 11:50:41 -07:00

12 lines
No EOL
318 B
Text

variable A : Type.{1}
variable f : A → A → A
variable g : A → A → A
precedence `+` : 65
infixl + := f
infixl + := g
variable a : A
variable b : A
print raw a+b -- + is overloaded
check fun (h : A → A → A)
(infixl + := h), -- Like local declarations, local notation "shadows" global one.
a+b