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
13 lines
706 B
Text
13 lines
706 B
Text
a : Nat
|
|
|
|
prvCtor.lean:25:23-25:61: error: invalid {...} notation, constructor for `Lean.Environment` is marked as private
|
|
prvCtor.lean:23:0-25:61: error: cannot evaluate code because '_eval._lambda_1' uses 'sorry' and/or contains errors
|
|
prvCtor.lean:27:7-27:8: error: unknown identifier 'a'
|
|
prvCtor.lean:29:25-29:27: error: overloaded, errors
|
|
failed to synthesize
|
|
EmptyCollection (Name "hello")
|
|
use `set_option diagnostics true` to get diagnostic information
|
|
|
|
invalid {...} notation, constructor for `Name` is marked as private
|
|
prvCtor.lean:31:25-31:34: error: invalid ⟨...⟩ notation, constructor for `Name` is marked as private
|
|
prvCtor.lean:33:25-33:40: error: unknown constant 'Name.mk'
|