Files
kotlin-fork/idea/testData/intentions/iterationOverMap/DataClassNullable.kt
T
2016-05-18 19:56:10 +03:00

11 lines
216 B
Kotlin
Vendored

// IS_APPLICABLE: false
// WITH_RUNTIME
data class XY(val x: String, val y: String)
fun test(xys: Array<XY?>) {
for (<caret>xy in xys) {
val x = xy?.x
val y = xy?.y
println(x + y)
}
}