lean4-htt/tests/lean/run/evalBuiltinInit.lean
Sebastian Ullrich 4e74e36331 feat: run initializers on import
Also, refuse to evaluate an `[init]` decl in the same module (since we don't know whether the initialization is
backtrackable) and always use native symbol of a `[builtinInit]` decl
2020-10-22 11:59:55 +02:00

6 lines
198 B
Text

#lang lean4
import Lean
-- option should be ignored when evaluating a `[builtinInit]` decl
set_option interpreter.prefer_native false
#eval toString Lean.PrettyPrinter.formatterAttribute.defn.name