Files
kotlin-fork/compiler/testData/codegen/box/constructorCall/kt49615.kt
T
2021-12-09 13:26:38 +03:00

17 lines
333 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_STDLIB
fun builder(c: suspend () -> Unit): Int = 42
@JvmInline
value class IC(val s: String)
fun box(): String {
builder {
listOf(
IC("O".plus("").sumOf { a: Char -> 1.toULong() }.rangeTo(67.toULong()).first.toString(36)),
IC("")
)
}
return "OK"
}