mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
13 lines
225 B
Kotlin
Vendored
13 lines
225 B
Kotlin
Vendored
class Outer {
|
|
class Nested{
|
|
fun foo(s: String) = s.extension()
|
|
}
|
|
|
|
companion object {
|
|
private fun String.extension(): String = this
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Outer.Nested().foo("OK")
|
|
} |