[NI] Approximate components of raw types separately

This is needed as components can have different type arguments
This commit is contained in:
Mikhail Zarechenskiy
2019-05-26 21:41:53 +03:00
parent 8910859fd1
commit a0234241f5
@@ -194,7 +194,7 @@ abstract class AbstractTypeApproximator(val ctx: TypeSystemInferenceExtensionCon
val lowerResult = approximateTo(lowerBound, conf, depth)
val upperResult = if (lowerBound.typeConstructor() == upperBound.typeConstructor())
val upperResult = if (type !is RawTypeMarker && lowerBound.typeConstructor() == upperBound.typeConstructor())
lowerResult?.withNullability(upperBound.isMarkedNullable())
else
approximateTo(upperBound, conf, depth)