In the standard library, we should use explicit universe variables for universe polymorphic definitions. Users that want to declare universe polymorphic definitions but do not want to provide universe level parameters should use Type _ or Type*
20 lines
1.2 KiB
Text
20 lines
1.2 KiB
Text
id : Π {A : Type u_1}, A → A
|
|
id₂ : Π {A : Type u_1}, A → A
|
|
foo1 : A → B → A
|
|
foo2 : A → B → A
|
|
foo3 : A → B → A
|
|
foo4 : A → B → A
|
|
foo1 : Π {A : Type u_1} {B : Type u_2}, A → B → A
|
|
foo2 : Π {A : Type u_1} (B : Type u_2), A → B → A
|
|
foo3 : Π (A : Type u_1) {B : Type u_2}, A → B → A
|
|
foo4 : Π (A : Type u_1) (B : Type u_2), A → B → A
|
|
boo1 : Π {A : Type u_1} {B : Type u_2}, A → B → A
|
|
boo2 : Π {A : Type u_1} (B : Type u_2), A → B → A
|
|
boo3 : Π (A : Type u_1) {B : Type u_2}, A → B → A
|
|
boo4 : Π (A : Type u_1) (B : Type u_2), A → B → A
|
|
param_binder_update.lean:70:12: error: invalid parameter binder type update, 'A' is a variable
|
|
param_binder_update.lean:71:11: error: invalid variable binder type update, 'C' is not a variable
|
|
param_binder_update.lean:72:12: error: invalid variable binder type update, 'C' is not a variable
|
|
param_binder_update.lean:73:12: error: invalid variable binder type update, 'C' is not a variable
|
|
param_binder_update.lean:77:12: error: invalid parameter binder type update, 'id3' is not a parameter
|
|
param_binder_update.lean:81:12: error: invalid variable binder type update, 'C' is not a variable
|