lean4-htt/tests/lean/interactive/5659.lean.expected.out
Sebastian Graf f01471f620
fix: proper "excess binders" error locations for rintro and intro (#6565)
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.
2025-01-08 08:36:45 +00:00

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}}}]}