mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
9 lines
174 B
Kotlin
Vendored
9 lines
174 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 |