-
Notifications
You must be signed in to change notification settings - Fork 810
Delaboration of re-exported names #2524
Copy link
Copy link
Description
Description
Delaborating things that contain names of re-exported types can chose the wrong name for the type.
This most notably causes incorrect doc-gen4 renders: https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Confusing.20delaboration.20in.20.20doc-gen/near/388158478
Steps to Reproduce
Delaboration of Lake.Name:
import Lean
import Lake
#eval show Lean.MetaM _ from do
let ⟨fmt, _⟩ ← Lean.PrettyPrinter.ppExprWithInfos (Lean.mkConst ``Lean.Name)
println! fmtFurther minified:
import Lean
import Lake
open Lean
#eval show MetaM _ from do
unresolveNameGlobal ``NameExpected behavior: We get Lean.Name
Actual behavior: We get Lake.Name
Reproduces how often: Always
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels