lean4-htt/tests/lean/interactive/structNameParentProj.lean.expected.out
Kyle Miller 7557542bc2
feat: make structure parent projections nameable (#7100)
This PR modifies the `structure` syntax so that parents can be named,
like in
```lean
structure S extends toParent : P
```
**Breaking change:** The syntax is also modified so that the resultant
type comes *before* the `extends` clause, for example `structure S :
Prop extends P`. This is necessary to prevent a parsing ambiguity, but
also this is the natural place for the resultant type. Implements RFC
#7099.

Will need followup PRs for cleanup after a stage0 update.
2025-02-18 07:38:13 +00:00

6 lines
285 B
Text

{"textDocument": {"uri": "file:///structNameParentProj.lean"},
"position": {"line": 6, "character": 23}}
{"range":
{"start": {"line": 6, "character": 21}, "end": {"line": 6, "character": 29}},
"contents":
{"value": "```lean\nS'.toParent (self : S') : S\n```", "kind": "markdown"}}