Files
kotlin-fork/compiler/testData/codegen/boxInline/simple/destructuring.kt
T
2018-06-28 12:26:41 +02:00

21 lines
336 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// FILE: 1.kt
package test
inline fun foo(x: (Int, Station) -> Unit) {
x(1, Station(null, "", 1))
}
data class Station(
val id: String?,
val name: String,
val distance: Int)
// FILE: 2.kt
import test.*
fun box(): String {
foo { i, (a1, a2, a3) -> i + a3 }
return "OK"
}