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.
6 lines
285 B
Text
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"}}
|