10 lines
175 B
Kotlin
Vendored
10 lines
175 B
Kotlin
Vendored
|
|
data class Pair(val first: Int, val second: Int)
|
|
|
|
inline fun <T> run(fn: () -> T) = fn()
|
|
|
|
val fstSec = 42
|
|
|
|
val (fst, snd) = run { Pair(fstSec, fstSec) }
|
|
|
|
// expected: fst: 42 |