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
330 B
Text
12 lines
330 B
Text
macroSwizzle.lean:4:7-4:23: error: failed to synthesize
|
|
HAdd Bool String ?m
|
|
use `set_option diagnostics true` to get diagnostic information
|
|
macroSwizzle.lean:6:7-6:10: error: application type mismatch
|
|
Nat.succ "x"
|
|
argument
|
|
"x"
|
|
has type
|
|
String : Type
|
|
but is expected to have type
|
|
Nat : Type
|
|
(sorryAx Nat true).succ : Nat
|