Do not force calculation of lower and upper bounds in java flexible type.
This commit is contained in:
+2
-2
@@ -306,8 +306,8 @@ class LazyJavaTypeResolver(
|
|||||||
return super.getCapability(capabilityClass)
|
return super.getCapability(capabilityClass)
|
||||||
}
|
}
|
||||||
|
|
||||||
override val isTypeVariable: Boolean = lowerBound.constructor == upperBound.constructor
|
override val isTypeVariable: Boolean get() = lowerBound.constructor.declarationDescriptor is TypeParameterDescriptor
|
||||||
&& lowerBound.constructor.declarationDescriptor is TypeParameterDescriptor
|
&& lowerBound.constructor == upperBound.constructor
|
||||||
|
|
||||||
override fun substitutionResult(replacement: KotlinType): KotlinType {
|
override fun substitutionResult(replacement: KotlinType): KotlinType {
|
||||||
return if (replacement.isFlexible()) replacement
|
return if (replacement.isFlexible()) replacement
|
||||||
|
|||||||
Reference in New Issue
Block a user