Fix deprecations in testData: arrayOf usages.

This commit is contained in:
Ilya Gorbunov
2015-09-11 17:31:06 +03:00
parent ae7cc8e430
commit e40a5457e3
36 changed files with 88 additions and 88 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ fun fill(dest : Array<in String>, v : String) {
fun box() : String {
//fun main(args : Array<String>) {
val s : String = "bar"
val any : Array<Any> = array(1, "foo", 1.234)
val any : Array<Any> = arrayOf(1, "foo", 1.234)
fill(any, s)
/* shouldn't throw
ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;