lean2/tests/lean/lua15.lean
Leonardo de Moura 7726ccad28 chore(builtin): rename nat, int and real modules to Nat, Int and Real.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-01 13:52:25 -08:00

15 lines
236 B
Text

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()
**)