lean2/tests/lean/t5.lean
Leonardo de Moura 5d8c7fbdf1 refactor(frontends/lean): replace '[private]' modifier with 'private
definition' and 'private theorem', '[private]' is not a hint.
2014-09-19 15:54:32 -07:00

13 lines
245 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
private definition q : N := f a
check q
end foo
check foo.h
check q -- Error q is now hidden