FE: do not wrap types with enhancements if they're the same
This commit is contained in:
@@ -159,7 +159,7 @@ fun UnwrappedType.wrapEnhancement(enhancement: KotlinType?): UnwrappedType {
|
||||
if (this is TypeWithEnhancement) {
|
||||
return origin.wrapEnhancement(enhancement)
|
||||
}
|
||||
if (enhancement == null) {
|
||||
if (enhancement == null || enhancement == this) {
|
||||
return this
|
||||
}
|
||||
return when (this) {
|
||||
|
||||
Reference in New Issue
Block a user