blob: 5886ee8ca360984282b34337c8f71f9f4929fa60 [file] [edit]
import Lean.Hygiene
open Lean
set_option trace.Compiler.extractClosed true
--set_option trace.compiler.ir.result true
-- The following function should not allocate any closures,
-- nor any heap object that doesn't appear in the result:
def foo (n : Nat) : Syntax.Term :=
Unhygienic.run `(a + $(quote n))