[K/N] Rework is checks and as casts codegeneration

^KT-58707
^KT-59022
This commit is contained in:
Pavel Kunyavskiy
2023-06-01 10:06:01 +02:00
committed by Space Team
parent b2212b9275
commit f2520a9cb7
21 changed files with 316 additions and 90 deletions
+7
View File
@@ -0,0 +1,7 @@
interface A {}
fun <E> getA() = (object : A {}) as A
fun box() : String {
return if (getA<Int>() is A) "OK" else "FAIL"
}