2014-06-16 16:50:34 +00:00
|
|
|
precedence `+` : 65
|
|
|
|
precedence `++` : 100
|
|
|
|
variable N : Type.{1}
|
|
|
|
variable f : N → N → N
|
|
|
|
variable a : N
|
2014-07-10 01:47:10 +00:00
|
|
|
check
|
2014-06-16 16:50:34 +00:00
|
|
|
let g x y := f x y,
|
|
|
|
infix + := g,
|
|
|
|
b : N := a+a,
|
|
|
|
c := b+a,
|
|
|
|
h (x : N) := x+x,
|
|
|
|
postfix ++ := h,
|
|
|
|
d := c++,
|
|
|
|
r (x : N) : N := x++++
|
|
|
|
in f b (r c)
|