4ba097a141
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
15 lines
234 B
Text
15 lines
234 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()
|
|
*)
|