lean2/tests/lean/t5.lean
Leonardo de Moura 39177ec10a feat(frontends/lean): flip definition modifiers position, now they must occur after the identifier
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-20 11:58:05 -07:00

13 lines
243 B
Text

variable N : Type.{1}
variable f : N → N
variable a : N
definition g (a : N) : N := f a
check g
namespace foo
definition h : N := f a
check h
definition q [private] : N := f a
check q
end
check foo.h
check q -- Error q is now hidden