mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
15 lines
255 B
Kotlin
Vendored
15 lines
255 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND: JVM_IR
|
|
|
|
inline class Foo(val a: String) {
|
|
fun test(): String {
|
|
return a + inlineFun()
|
|
}
|
|
}
|
|
|
|
inline fun inlineFun(): String = "K"
|
|
|
|
fun box(): String {
|
|
val f = Foo("O")
|
|
return f.test()
|
|
} |