Summary: - Take `synthPendingDepth` into account when caching TC results - Add `maxSynthPendingDepth` option with default := 2. - Add support for tracking `synthPending` failures when using `set_option diagnostics true` closes #2522 closes #3313 closes #3927 Identical to #4114 but with `maxSynthPendingDepth := 1` closes #4114 cc @semorrison
12 lines
466 B
Text
12 lines
466 B
Text
scopedLocalInsts.lean:12:6-12:39: error: failed to synthesize
|
|
ToString A
|
|
use `set_option diagnostics true` to get diagnostic information
|
|
"A.mk 10 20"
|
|
scopedLocalInsts.lean:21:6-21:39: error: failed to synthesize
|
|
ToString A
|
|
use `set_option diagnostics true` to get diagnostic information
|
|
"{ x := 10, y := 20 }"
|
|
scopedLocalInsts.lean:32:6-32:39: error: failed to synthesize
|
|
ToString A
|
|
use `set_option diagnostics true` to get diagnostic information
|
|
"A.mk 10 20"
|