lean4-htt/tests/lean/typeOf.lean.expected.out
Leonardo de Moura de5e039c83
fix: type class issues with maxSynthPendingDepth := 1 (#4119)
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
2024-05-14 03:03:32 +00:00

14 lines
524 B
Text

typeOf.lean:11:22-11:25: error: failed to synthesize
HAdd Nat Nat Bool
use `set_option diagnostics true` to get diagnostic information
typeOf.lean:12:0-12:5: error: failed to synthesize
HAdd Bool Nat Nat
use `set_option diagnostics true` to get diagnostic information
typeOf.lean:20:56-20:62: error: invalid reassignment, term has type
Bool : Type
but is expected to have type
Nat : Type
typeOf.lean:29:55-29:59: error: natural number expected, value has type
Bool : Type
but is expected to have type
Nat : Type