KT-3771 Fixed

This commit is contained in:
Yakov Zaytsev
2013-07-19 14:26:16 +04:00
parent 9cc51d6db1
commit bb364cd393
4 changed files with 66 additions and 8 deletions
@@ -0,0 +1,14 @@
fun fill(dest : Array<in String>, v : String) {
dest[0] = v
}
fun box() : String {
//fun main(args : Array<String>) {
val s : String = "bar"
val any : Array<Any> = array(1, "foo", 1.234)
fill(any, s)
/* shouldn't throw
ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
*/
return "OK"
}