Fix for KT-7306: Implicit array conversions cause ClassCastException at runtime

#KT-7306 Fixed
This commit is contained in:
Michael Bogdanov
2015-04-09 12:15:46 +03:00
parent 405038b2d8
commit 824d1ac556
5 changed files with 69 additions and 15 deletions
@@ -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
}