This PR fixes the location of the error emitted when the `rintro` and `intro` tactics cannot introduce the requested number of binders. This patch adds a few `withRef` wrappers to invocations of `MVarId.intro` to fix error locations. Perhaps `MVarId.intro` should take a syntax object to set the location itself in the future; however there are a couple other call sites which would need non-trivial fixup. Closes #5659.
22 lines
767 B
Text
22 lines
767 B
Text
{"version": 1,
|
|
"uri": "file:///5659.lean",
|
|
"diagnostics":
|
|
[{"source": "Lean 4",
|
|
"severity": 1,
|
|
"range":
|
|
{"start": {"line": 7, "character": 17}, "end": {"line": 7, "character": 18}},
|
|
"message":
|
|
"tactic 'introN' failed, insufficient number of binders\ncase intro\nn : Nat\nhn : n < 0\n⊢ False",
|
|
"fullRange":
|
|
{"start": {"line": 7, "character": 17},
|
|
"end": {"line": 7, "character": 18}}},
|
|
{"source": "Lean 4",
|
|
"severity": 1,
|
|
"range":
|
|
{"start": {"line": 11, "character": 16},
|
|
"end": {"line": 11, "character": 17}},
|
|
"message":
|
|
"tactic 'introN' failed, insufficient number of binders\nn : Nat\nhn : n < 0\n⊢ False",
|
|
"fullRange":
|
|
{"start": {"line": 11, "character": 16},
|
|
"end": {"line": 11, "character": 17}}}]}
|