Fix hasCustomAttributes

This commit is contained in:
Irene Dea
2022-01-04 11:54:14 -08:00
committed by Dmitriy Novozhilov
parent 13bff10567
commit 76b7cb3193
2 changed files with 1 additions and 3 deletions
@@ -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> {