JVM_IR KT-48987 handle star projection arguments in smart casts
This commit is contained in:
committed by
Alexander Udalov
parent
944fa7e2f8
commit
c74453d8d2
+12
@@ -0,0 +1,12 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WITH_STDLIB
|
||||
|
||||
fun box(): String {
|
||||
return try {
|
||||
val range1 = 0..1
|
||||
range1 as List<Double>
|
||||
range1.joinToString { "" }
|
||||
} catch (e: java.lang.ClassCastException) {
|
||||
"OK"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user