[Jspecify] Use enhancement of type with enhancement if possible during substitution
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ interface NewTypeSubstitutor : TypeSubstitutorMarker {
|
||||
KotlinTypeFactory.flexibleType(
|
||||
lowerBound?.lowerIfFlexible() ?: type.lowerBound,
|
||||
upperBound?.upperIfFlexible() ?: type.upperBound
|
||||
).wrapEnhancement(enhancement)
|
||||
).wrapEnhancement(if (enhancement is TypeWithEnhancement) enhancement.enhancement else enhancement)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user