This PR ensures that type-class synthesis failure errors in interpolated strings are displayed at the interpolant at which they occurred.
33 lines
1.3 KiB
Text
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}}}]}
|