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.
26 lines
474 B
Text
26 lines
474 B
Text
/-!
|
|
# Reduce parents in structure `extends` clause
|
|
-/
|
|
|
|
structure A
|
|
abbrev B := A
|
|
|
|
/-!
|
|
This already worked before the fix. Structure instances unfold the expected type.
|
|
-/
|
|
/-- info: { } : A -/
|
|
#guard_msgs in #check { : B}
|
|
|
|
/-!
|
|
This is now allowed. The parent `B` is unfolded.
|
|
-/
|
|
structure C extends B
|
|
|
|
/-- info: { } : C -/
|
|
#guard_msgs in #check { : C}
|
|
|
|
/-!
|
|
Note that the parent projection is for `A`, not `B`.
|
|
-/
|
|
/-- info: C.toA (self : C) : A -/
|
|
#guard_msgs in #check C.toA
|