Files
kotlin/compiler/testData/codegen/script/kt22029.kts
Dmitry Petrov 5ffd6a737e Closures in scripts have outer expression
#KT-22029 Fixed Target versions 1.2.30
2018-01-10 14:08:56 +03:00

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