lean4-htt/tests/lean/macroStack.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

26 lines
762 B
Text

macroStack.lean:4:5-4:6: error: unknown identifier 'x'
macroStack.lean:8:6-8:7: error: unknown identifier 'x'
with resulting expansion
binrel% GT.gt✝ x 0
while expanding
x > 0
while expanding
(x > 0)
while expanding
if h : (x > 0) then 1 else 0
macroStack.lean:11:9-11:15: error: invalid use of `(<- ...)`, must be nested inside a 'do' expression
macroStack.lean:17:0-17:6: error: failed to synthesize
HAdd Nat String ?m
use `set_option diagnostics true` to get diagnostic information
with resulting expansion
binop% HAdd.hAdd✝ (x + x✝) x✝¹
while expanding
(x + x✝) + x✝¹
while expanding
foo!(x + x✝)
while expanding
foo!(x + x✝) < 1
while expanding
if foo!(x + x✝) < 1 then true✝ else false✝
while expanding
bla! x