Fix losing flexible type enhancement in type substituting
It breaks `org.jetbrains.kotlin.nj2k.NewJavaToKotlinConverterSingleFileTestGenerated.ToArray#testToArray` test due to losing external nullability annotations
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ interface NewTypeSubstitutor: TypeSubstitutorMarker {
|
||||
KotlinTypeFactory.flexibleType(
|
||||
lowerBound?.lowerIfFlexible() ?: type.lowerBound,
|
||||
upperBound?.upperIfFlexible() ?: type.upperBound
|
||||
)
|
||||
).inheritEnhancement(type)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user