lean4-htt/tests/lean/toFieldNameIssue.lean.expected.out
Kyle Miller 655ec964f5
feat: flatten parent projections when pretty printing structure instance notation (#3749)
Given
```lean
structure A where
  x : Nat

structure B extends A where
  y : Nat
```
rather than pretty printing `{ x := 1, y := 2 : B }` as `{ toA := { x :=
1 }, y := 2 }`, it now pretty prints as `{ x := 1, y := 2 }`.

The option `pp.structureInstances.flatten` controls whether to flatten
structure instances like this.
2024-03-23 09:20:52 +00:00

4 lines
145 B
Text

{ x := 0, y := 1, z := 2 } : B
{ x := 0, y := 1, z := 2 } : D
@[reducible] def D.toC_1 : D → Boo.C :=
fun self => { x := self.x, z := self.z }