Psi2IR: workaround for IR-based descriptors

Since KotlinTypes involving IR-Based descriptors are distinct from KotlinTypes
involving original descriptors of the same declarations, subtyping check
breaks in InsertImplicitCasts.
This commit is contained in:
Georgy Bronnikov
2020-12-10 16:13:54 +03:00
parent 99c874ba8a
commit b35d4134a7
3 changed files with 28 additions and 7 deletions
@@ -157,7 +157,7 @@ fun testSmartCastWithSuspendConversion(a: Any) {
callee.invoke()
}
a::suspendConversion0
a /*as Function0<Unit> */::suspendConversion0
})
}
@@ -169,7 +169,7 @@ fun testSmartCastOnVarWithSuspendConversion(a: Any) {
callee.invoke()
}
b::suspendConversion0
b /*as Function0<Unit> */::suspendConversion0
})
}