lean4-htt/tests/leanpkg/user_ext/UserExt/Tst1.lean
Leonardo de Moura cdd1dbbb36 feat: user-defined environment extensions
New test demonstrates how to use them.
The user-defined extensions cannot be used in the same file where they
were declared because the `initialize` commands are only executed when
we import the modules containing them.

TODO: user-defined attributes.
2021-07-26 16:18:48 -07:00

9 lines
121 B
Text

import UserExt.FooExt
import UserExt.BlaExt
insert_foo hello
insert_foo world
show_foo_set
insert_bla abc
show_bla_set