This PR updates the styling and wording of error messages produced in inductive type declarations and anonymous constructor notation, including hints for inferable constructor visibility updates.
37 lines
1.5 KiB
Text
37 lines
1.5 KiB
Text
ctorUnivTooBig.lean:3:2-3:45: error: Invalid universe level in constructor `Bla.cons`: Parameter `α` has type
|
||
Type u
|
||
at universe level
|
||
u+2
|
||
which is not less than or equal to the inductive type's resulting universe level
|
||
u+1
|
||
ctorUnivTooBig.lean:7:2-7:25: error: Invalid universe level in constructor `Foo.mk`: Parameter `α` has type
|
||
Type
|
||
at universe level
|
||
2
|
||
which is not less than or equal to the inductive type's resulting universe level
|
||
1
|
||
ctorUnivTooBig.lean:12:2-12:34: error: Invalid universe level in constructor `Foo'.mk`: Parameter has type
|
||
Sort (max u v)
|
||
at universe level
|
||
max (u+1) (v+1)
|
||
which is not less than or equal to the inductive type's resulting universe level
|
||
u+1
|
||
Ex1.Member.head.{u} {α : Type u} {a : α} {as : List α} : Member a (a :: as)
|
||
ctorUnivTooBig.lean:35:2-35:27: error: Invalid universe level in constructor `Ex3.Member.head`: Parameter `as` has type
|
||
List α
|
||
at universe level
|
||
u_1+1
|
||
which is not less than or equal to the inductive type's resulting universe level
|
||
max (u+1) (v+1)
|
||
ctorUnivTooBig.lean:41:2-41:27: error: Invalid universe level in constructor `Ex4.Member.head`: Parameter `as` has type
|
||
List α
|
||
at universe level
|
||
u_1+1
|
||
which is not less than or equal to the inductive type's resulting universe level
|
||
u+2
|
||
ctorUnivTooBig.lean:47:2-47:27: error: Invalid universe level in constructor `Ex5.Member.head`: Parameter `as` has type
|
||
List α
|
||
at universe level
|
||
u_1+1
|
||
which is not less than or equal to the inductive type's resulting universe level
|
||
2
|