This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
23 lines
468 B
Text
23 lines
468 B
Text
/-!
|
||
# Eta arguments had wrong context in "don't know how to synthesize implicit" errors
|
||
https://github.com/leanprover/lean4/issues/5475
|
||
-/
|
||
|
||
set_option pp.mvars false
|
||
|
||
/-!
|
||
Formerly, argument `x` appeared as `_fvar.123`
|
||
-/
|
||
|
||
def f {α β : Type} (x: α) (y: β) : α := x
|
||
/--
|
||
error: don't know how to synthesize implicit argument `α`
|
||
@f ?_ Nat x✝ Nat.zero
|
||
context:
|
||
⊢ Type
|
||
---
|
||
error: Failed to infer type of example
|
||
-/
|
||
#guard_msgs in
|
||
example :=
|
||
f (y := Nat.zero)
|