lean2/tests/lua/expr1.lua
Leonardo de Moura 2e1a0bd50c feat(kernel/expr): add is_contextual binder info
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-05-14 14:54:27 -07:00

12 lines
498 B
Lua

assert(not binder_info():is_implicit())
assert(not binder_info():is_cast())
assert(not binder_info(false, false):is_implicit())
assert(not binder_info(false, false):is_cast())
assert(binder_info(true):is_implicit())
assert(not binder_info(true):is_cast())
assert(binder_info(true, true):is_implicit())
assert(binder_info(true, true):is_cast())
assert(binder_info():is_contextual())
assert(not binder_info(true, true, false):is_contextual())
assert(binder_info(false, false, true):is_contextual())