Minor. Removed TypeParameterDescriptor#getLowerBounds
This commit is contained in:
@@ -72,7 +72,6 @@ class FuzzyType(
|
||||
private fun MutableSet<TypeParameterDescriptor>.addUsedTypeParameters(type: KotlinType) {
|
||||
val typeParameter = type.constructor.declarationDescriptor as? TypeParameterDescriptor
|
||||
if (typeParameter != null && add(typeParameter)) {
|
||||
typeParameter.lowerBounds.forEach { addUsedTypeParameters(it) }
|
||||
typeParameter.upperBounds.forEach { addUsedTypeParameters(it) }
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -621,7 +621,6 @@ class KotlinPsiUnifier(
|
||||
desc2: TypeParameterDescriptor
|
||||
): Status {
|
||||
if (desc1.variance != desc2.variance) return UNMATCHED
|
||||
if (!matchTypes(desc1.lowerBounds, desc2.lowerBounds)) return UNMATCHED
|
||||
if (!matchTypes(desc1.upperBounds, desc2.upperBounds)) return UNMATCHED
|
||||
return MATCHED
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user