Files
kotlin/compiler/testData/diagnostics/testsWithStdLib/inference/arrayConstructor.kt
Denis Zharkov 654411a0b0 Refactored tests using Array constructor:
Some moved to tests with stdlib
Some changed to use arrayOfNulls
2014-12-11 16:04:03 +03:00

13 lines
199 B
Kotlin

package b
fun bar() {
val a1 = Array(1, {(i: Int) -> i})
val a2 = Array(1, {(i: Int) -> "$i"})
val a3 = Array(1, {it})
a1 : Array<Int>
a2 : Array<String>
a3 : Array<Int>
}