lean4-htt/old_tests/tests/lean/vm_inline_aux.lean
2018-04-10 12:56:55 -07:00

11 lines
242 B
Text

namespace ex
set_option trace.compiler.optimize_bytecode true
@[inline] def {u} cond {a : Type u} : bool → a → a → a
| tt x y := x
| ff x y := y
-- cond should be inlined here
def foo (x : bool) :=
100 + cond x (10*10) (20*20)
end ex