[K/N] Rework is checks and as casts codegeneration
^KT-58707 ^KT-59022
This commit is contained in:
committed by
Space Team
parent
b2212b9275
commit
f2520a9cb7
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user