Avoid a cycle of analysing of type parameters via checking that it's a type parameter first
This commit is contained in:
+1
-1
@@ -238,7 +238,7 @@ internal class NotNullTypeParameter(override val delegate: SimpleType) : NotNull
|
|||||||
|
|
||||||
override fun substitutionResult(replacement: KotlinType): KotlinType {
|
override fun substitutionResult(replacement: KotlinType): KotlinType {
|
||||||
val unwrappedType = replacement.unwrap()
|
val unwrappedType = replacement.unwrap()
|
||||||
if (!TypeUtils.isNullableType(unwrappedType) && !unwrappedType.isTypeParameter()) return unwrappedType
|
if (!unwrappedType.isTypeParameter() && !TypeUtils.isNullableType(unwrappedType)) return unwrappedType
|
||||||
|
|
||||||
return when (unwrappedType) {
|
return when (unwrappedType) {
|
||||||
is SimpleType -> unwrappedType.prepareReplacement()
|
is SimpleType -> unwrappedType.prepareReplacement()
|
||||||
|
|||||||
Reference in New Issue
Block a user