When projection functions are delaborated, intermediate parent projections are no longer printed. For example, rather than pretty printing as `o.toB.toA.x` with these `toB` and `toA` parent projections, it pretty prints as `o.x`. This feature is being upstreamed from mathlib.
6 lines
466 B
Text
6 lines
466 B
Text
Foo1.mk {α : Type} (toBar : Bar (α → α)) (β : Type) (b : α → β) : Foo1 α
|
||
Foo2.mk {α : Type} (toBar : Bar (α → α)) (β : Type) (b : α → β) (x1 x2 : α) : Foo2 α
|
||
@[reducible] def Foo2.toBar : {α : Type} → Foo2 α → Bar (α → α) :=
|
||
fun α self => self.1
|
||
@[reducible] def Foo2.toBoo2 : {α : Type} → Foo2 α → Boo2 α :=
|
||
fun α self => { toBoo1 := { toBaz := { a := self.a, β := self.β, b := self.b }, x1 := self.x1 }, x2 := self.x2 }
|