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*
15 lines
380 B
Text
15 lines
380 B
Text
instance_cache1.lean:5:2: error: failed to synthesize type class instance for
|
|
A : Type ?,
|
|
a : A,
|
|
this : has_add A
|
|
⊢ has_add A
|
|
instance_cache1.lean:8:7: error: failed to synthesize type class instance for
|
|
A : Type ?,
|
|
a : A,
|
|
s : has_add A
|
|
⊢ has_add A
|
|
instance_cache1.lean:11:19: error: failed to synthesize type class instance for
|
|
A : Type ?,
|
|
a : A,
|
|
s : has_add A
|
|
⊢ has_add A
|