Files
kotlin-fork/compiler/testData/codegen/box/innerNested/kt5363.kt
T
2019-11-19 11:00:09 +03:00

14 lines
255 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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")
}