Fix hasCustomAttributes
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
13bff10567
commit
76b7cb3193
@@ -70,8 +70,6 @@ class TypeAttributes private constructor(attributes: List<TypeAttribute<*>>) : A
|
||||
}
|
||||
}
|
||||
|
||||
val size: Int get() = arrayMap.size
|
||||
|
||||
fun union(other: TypeAttributes): TypeAttributes {
|
||||
return perform(other) { this.union(it) }
|
||||
}
|
||||
|
||||
@@ -677,7 +677,7 @@ interface ClassicTypeSystemContext : TypeSystemInferenceExtensionContext, TypeSy
|
||||
|
||||
override fun KotlinTypeMarker.hasCustomAttributes(): Boolean {
|
||||
require(this is KotlinType, this::errorMessage)
|
||||
return this.attributes.size > 1
|
||||
return !this.attributes.isEmpty() && this.getCustomAttributes().size > 0
|
||||
}
|
||||
|
||||
override fun KotlinTypeMarker.getCustomAttributes(): List<AnnotationMarker> {
|
||||
|
||||
Reference in New Issue
Block a user