Fix for KT-7306: Implicit array conversions cause ClassCastException at runtime
#KT-7306 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
fun test(y: Array<in Array<String>>) {
|
||||
y[0] = kotlin.array("OK")
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
val x : Array<Array<*>> = kotlin.array(kotlin.array(1))
|
||||
test(x)
|
||||
return x[0][0] as String
|
||||
}
|
||||
Reference in New Issue
Block a user