[FIR2IR] Properly insert implicit casts to extension receiver in case of intersection smartcast type

^KT-62863 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-11-02 12:27:30 +02:00
committed by Space Team
parent 50106c740c
commit 420fbad73d
25 changed files with 548 additions and 91 deletions
@@ -0,0 +1,14 @@
// FIR_IDENTICAL
fun <F : CharSequence> F.bar() {}
inline fun <reified T : CharSequence> test_1(x: Any) {
if (x is T) {
x.bar()
}
}
fun test_2(x: Any?) {
if (x is CharSequence) {
x.bar()
}
}