lean2/tests/lean/lua17.lean
Leonardo de Moura b08c606696 fix(library/io_state): bug in the io_state Lua bindings
This commit also includes a new test that exposes the problem.
The options in the io_state object were being lost.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-19 16:39:42 -08:00

14 lines
No EOL
237 B
Text

Variables a b : Int
Show Options
(**
local ios = io_state()
print(get_options())
print(get_options())
ios:print(parse_lean("a + b"))
print(parse_lean("fun x, a + x"))
print(get_options())
**)
Show Options
Show Environment 2