[FIR] Simplify substitution for unsafe-variant type parameter types

#KT-41792 Fixed
This commit is contained in:
Mikhail Glukhikh
2020-09-14 12:39:32 +03:00
parent e1b4108e4a
commit 6fd3b011ca
2 changed files with 11 additions and 2 deletions
@@ -6,6 +6,6 @@ internal fun Any.matchesRendering(other: Any): Boolean {
return when {
this::class != other::class -> false
this !is UpdatableRendering<*> -> true
else -> this.<!INAPPLICABLE_CANDIDATE!>canUpdateFrom<!>(other as UpdatableRendering<*>)
else -> this.canUpdateFrom(other as UpdatableRendering<*>)
}
}