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

17 lines
331 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_STDLIB
@JvmInline
value class IC(val s: String)
fun asAny(a: Any) = a
fun box(): String {
val t = asAny(
IC("O".plus("").sumOf { a: Char -> 1.toULong() }.rangeTo(67.toULong()).first.toString(36))
).toString()
if (t != "IC(s=1)")
return "Failed: t=$t"
return "OK"
}