lean4-htt/tests/lean/interactive/strInterpSynthError.lean.expected.out
jrr6 05948f19e4
fix: improve precision of synthesis failure spans in interpolated strings (#9004)
This PR ensures that type-class synthesis failure errors in interpolated
strings are displayed at the interpolant at which they occurred.
2025-06-27 01:47:32 +00:00

33 lines
1.3 KiB
Text

{"version": 1,
"uri": "file:///strInterpSynthError.lean",
"diagnostics":
[{"source": "Lean 4",
"severity": 1,
"range":
{"start": {"line": 15, "character": 25},
"end": {"line": 15, "character": 28}},
"message":
"failed to synthesize\n ToString Bar\n\nAdditional diagnostic information may be available using the `set_option diagnostics true` command.",
"fullRange":
{"start": {"line": 15, "character": 25},
"end": {"line": 15, "character": 28}}},
{"source": "Lean 4",
"severity": 1,
"range":
{"start": {"line": 20, "character": 15},
"end": {"line": 20, "character": 18}},
"message":
"failed to synthesize\n ToString Bar\n\nAdditional diagnostic information may be available using the `set_option diagnostics true` command.",
"fullRange":
{"start": {"line": 20, "character": 15},
"end": {"line": 20, "character": 18}}},
{"source": "Lean 4",
"severity": 1,
"range":
{"start": {"line": 26, "character": 17},
"end": {"line": 26, "character": 20}},
"message":
"failed to synthesize\n ToString Bar\n\nAdditional diagnostic information may be available using the `set_option diagnostics true` command.",
"fullRange":
{"start": {"line": 26, "character": 17},
"end": {"line": 26, "character": 20}}}]}