lean2/tests/lean/lua6.lean
Leonardo de Moura 8c956280d9 chore(frontends/lean): rename setoption and setopaque commands to set::option and set::opaque
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-06 11:41:03 -08:00

20 lines
328 B
Text

import Int.
variable x : Int
set::option pp::notation false
(*
print(get_options())
*)
check x + 2
(*
o = get_options()
o = o:update(name('lean', 'pp', 'notation'), true)
set_options(o)
print(get_options())
*)
check x + 2
(*
set_option(name('lean', 'pp', 'notation'), false)
print(get_options())
*)
variable y : Int
check x + y