mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
17 lines
318 B
Kotlin
Vendored
17 lines
318 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// KJS_WITH_FULL_RUNTIME
|
|
// !LANGUAGE: +InlineClasses
|
|
// WITH_RUNTIME
|
|
|
|
inline class Foo(val arg: String)
|
|
|
|
fun box(): String {
|
|
val ls = listOf(Foo("abc"), Foo("def"))
|
|
var res = ""
|
|
for (el in ls) {
|
|
res += el.arg
|
|
}
|
|
|
|
return if (res != "abcdef") "Fail" else "OK"
|
|
}
|