[FE] Implement temporary resolution algorithm
This commit is contained in:
committed by
TeamCityServer
parent
d923c95671
commit
c34fe8d547
@@ -84,6 +84,8 @@ fun KotlinType.isPrimitiveNumberOrNullableType(): Boolean =
|
||||
|
||||
fun KotlinType.isTypeParameter(): Boolean = TypeUtils.isTypeParameter(this)
|
||||
|
||||
fun KotlinType.containsTypeParameter(): Boolean = TypeUtils.contains(this) { t -> TypeUtils.isTypeParameter(t) }
|
||||
|
||||
fun KotlinType.upperBoundedByPrimitiveNumberOrNullableType(): Boolean =
|
||||
TypeUtils.getTypeParameterDescriptorOrNull(this)?.upperBounds?.any {
|
||||
it.isPrimitiveNumberOrNullableType() || it.upperBoundedByPrimitiveNumberOrNullableType()
|
||||
|
||||
Reference in New Issue
Block a user