JVM_IR KT-27427 use checkNotNull with message in checked casts
This would prevent extra branching in 'as <not-null-type>', which usually would not be covered.
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ fun testDoubleArray(n: Int) =
|
||||
DoubleArray(n) { it.toDouble() }
|
||||
|
||||
fun testObjectArray(n: Int) =
|
||||
Array(n) { it as Any }
|
||||
Array(n) { it.toString() }
|
||||
|
||||
// 0 IF_ICMPGT
|
||||
// 0 IF_CMPEQ
|
||||
|
||||
Reference in New Issue
Block a user