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*
18 lines
585 B
Text
18 lines
585 B
Text
eq.refl
|
|
attribute [foo, refl]
|
|
constructor eq.refl : ∀ {A : Type u} (a : A), a = a
|
|
[eq.refl]
|
|
---
|
|
eq.refl
|
|
attribute [foo, foo.baz, refl]
|
|
constructor eq.refl : ∀ {A : Type u} (a : A), a = a
|
|
[eq.refl]
|
|
user_attribute.lean:24:0: error: an attribute named [reducible] has already been registered
|
|
state:
|
|
⊢ true
|
|
user_attribute.lean:29:0: error: invalid attribute.register argument, must be name of a definition of type user_attribute
|
|
state:
|
|
⊢ true
|
|
user_attribute.lean:35:2: error: invalid attribute.register argument, must be name of a definition of type user_attribute
|
|
state:
|
|
⊢ true
|