mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
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.
39 lines
1.2 KiB
Lean4
39 lines
1.2 KiB
Lean4
set_option pp.mvars false
|
|
|
|
/--
|
|
error: failed to synthesize instance of type class
|
|
OfNat (Sort _) 1
|
|
numerals are polymorphic in Lean, but the numeral `1` cannot be used in a context where the expected type is
|
|
Sort _
|
|
due to the absence of the instance above
|
|
|
|
Hint: Type class instance resolution failures can be inspected with the `set_option trace.Meta.synthInstance true` command.
|
|
-/
|
|
#guard_msgs in
|
|
axiom bla : 1
|
|
|
|
/--
|
|
error: failed to synthesize instance of type class
|
|
OfNat (Sort _) 1
|
|
numerals are polymorphic in Lean, but the numeral `1` cannot be used in a context where the expected type is
|
|
Sort _
|
|
due to the absence of the instance above
|
|
|
|
Hint: Type class instance resolution failures can be inspected with the `set_option trace.Meta.synthInstance true` command.
|
|
-/
|
|
#guard_msgs in
|
|
structure Foo where
|
|
foo : 1
|
|
|
|
/--
|
|
error: failed to synthesize instance of type class
|
|
OfNat (Sort _) 1
|
|
numerals are polymorphic in Lean, but the numeral `1` cannot be used in a context where the expected type is
|
|
Sort _
|
|
due to the absence of the instance above
|
|
|
|
Hint: Type class instance resolution failures can be inspected with the `set_option trace.Meta.synthInstance true` command.
|
|
-/
|
|
#guard_msgs in
|
|
inductive Bla (x : 1) : Type
|