lean2/tests/lean/run/section5.lean
Leonardo de Moura b5c4e603db feat(frontends/lean): allow parameters to be used in sections
Restriction:
- coercions and notations cannot be defined in parametric sections

closes #401
2015-01-23 17:42:19 -08:00

18 lines
254 B
Text

section foo
parameter A : Type
variable a : A
definition foo := a
check foo
structure point [class] :=
(x : A) (y : A)
end foo
check foo
definition point_nat [instance] : point nat :=
point.mk nat.zero nat.zero
print classes
check point