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