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
6 lines
198 B
Text
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
|