Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/MathlibTest/Linter/PrivateModule/     Datei vom 15.10.2026 mit Größe 472 B image not shown  

Quelle  Initialize.lean   Sprache: Lean

 

module

import Mathlib.Tactic.Linter.PrivateModule

open Lean

set_option linter.privateModule true

-- Should not fire, since `initialize` has effects downstream despite creating a private decl here.
initialize pure ()

/- Check that we have indeed created a declaration, and aren't not linting just due to being an
empty file: -/

/-- info: [initFn✝] -/
#guard_msgs in
run_cmd do
  logInfo m!"{(← getEnv).constants.map₂.toArray.map (MessageData.ofConstName ·.1)}"

Messung
CHZG
9310010097

¤ Dauer der Verarbeitung: 0.1 Sekunden  ¤

*© Formatika GbR, Deutschland