mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
14 lines
229 B
Kotlin
Vendored
14 lines
229 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
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()
|
|
} |