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
5 lines
273 B
Text
5 lines
273 B
Text
defaultInstance.lean:20:20-20:23: error: failed to synthesize
|
|
Foo Bool (?m x)
|
|
use `set_option diagnostics true` to get diagnostic information
|
|
defaultInstance.lean:22:35-22:38: error: typeclass instance problem is stuck, it is often due to metavariables
|
|
Foo Bool (?m x)
|