41a416da60
Delete all test methods (and empty test classes), since they'll be auto-generated
9 lines
243 B
Kotlin
9 lines
243 B
Kotlin
fun <T> Array<T>?.get(i : Int?) = this!!.get(i!!)
|
|
fun <T> array(vararg t : T) : Array<T> = t
|
|
|
|
fun box() : String {
|
|
val a : Array<String>? = array<String>("Str", "Str2")
|
|
val i : Int? = 1
|
|
return if(a[i] == "Str2") "OK" else "fail"
|
|
}
|