lean2/tests/lean/lua15.lean

16 lines
236 B
Text
Raw Normal View History

Import int.
Variables i j : Int
Variable p : Bool
(**
local env = get_environment()
ok, ex = pcall(
function()
print(parse_lean("i + p"))
end)
assert(not ok)
assert(is_exception(ex))
print(ex:what())
ex:rethrow()
**)