4ba097a141
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
14 lines
282 B
Text
14 lines
282 B
Text
import Int.
|
|
variables x y z : Int
|
|
|
|
(*
|
|
import("util.lua")
|
|
local env = get_environment()
|
|
local plus = Const{"Int", "add"}
|
|
local x, y = Consts("x y")
|
|
local def = plus(plus(x, y), iVal(1000))
|
|
print(def, ":", env:type_check(def))
|
|
env:add_definition("sum", def)
|
|
*)
|
|
|
|
eval sum + 3
|