This PR ensures private declarations are accessible from the private scope iff they are local or imported through an `import all` chain, including for anonymous notation and structure instance notation.
14 lines
371 B
Text
14 lines
371 B
Text
import Lean.Compiler.IR
|
|
|
|
open Lean
|
|
open Lean.IR
|
|
|
|
def test : CoreM Unit := do
|
|
let ctorLayout ← getCtorLayout ``Lean.IR.Expr.reuse;
|
|
ctorLayout.fieldInfo.forM $ fun finfo => IO.println (format finfo);
|
|
IO.println "---";
|
|
let ctorLayout ← getCtorLayout ``Subtype.mk;
|
|
ctorLayout.fieldInfo.forM $ fun finfo => IO.println (format finfo);
|
|
pure ()
|
|
|
|
#eval test
|