mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
14 lines
281 B
Kotlin
Vendored
14 lines
281 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
inline class S(val string: String)
|
|
|
|
class Outer {
|
|
private fun foo(s: S) = s.string
|
|
|
|
inner class Inner(val string: String) {
|
|
fun bar() = foo(S(string))
|
|
}
|
|
}
|
|
|
|
fun box(): String = Outer().Inner("OK").bar() |