Do not force calculation of lower and upper bounds in java flexible type.

This commit is contained in:
Stanislav Erokhin
2016-04-22 22:02:14 +03:00
parent 45ac1d2cb5
commit f9130ae133
@@ -306,8 +306,8 @@ class LazyJavaTypeResolver(
return super.getCapability(capabilityClass)
}
override val isTypeVariable: Boolean = lowerBound.constructor == upperBound.constructor
&& lowerBound.constructor.declarationDescriptor is TypeParameterDescriptor
override val isTypeVariable: Boolean get() = lowerBound.constructor.declarationDescriptor is TypeParameterDescriptor
&& lowerBound.constructor == upperBound.constructor
override fun substitutionResult(replacement: KotlinType): KotlinType {
return if (replacement.isFlexible()) replacement