Files
kotlin-fork/compiler/testData/codegen/script/kt22029.kts
T
Ilya Chernikov 5824b9c59c K2 Scripting: add Fir script codegen tests
27 failing tests are muted
2023-07-05 19:46:03 +00:00

11 lines
204 B
Kotlin
Vendored

// IGNORE_BACKEND_K2: JVM_IR
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