lean2/tests/lua/choice2.lua
Leonardo de Moura 2c0f596665 fix(library/choice): avoid assertion violation when Lua API is misused
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-24 12:14:38 -07:00

6 lines
161 B
Lua

local a = Local("a", Bool)
local b = Local("b", Bool)
local c = mk_choice(a, b)
print(c)
local env = environment()
check_error(function() env:infer_type(c) end)