lean4-htt/tests/lean/run/inliner_bug.lean
Leonardo de Moura 6ce00a9b45 fix(library/compiler): move inliner to the beginning
Reason: the inliner may introduce recursors, non eta-expanded terms,
etc. Before this commit, it was "undoing" previous compilation steps.
2016-11-08 16:14:01 -08:00

4 lines
80 B
Text

@[inline] def g (n : nat) : nat :=
nat.rec_on n 0 (λ m r, r + 2)
vm_eval g 10