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

33 lines
473 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class Outer {
class Nested
inner class Inner
fun Inner.foo() {
Outer()
Nested()
Inner()
}
fun Nested.bar() {
Outer()
Nested()
Inner()
}
fun Outer.baz() {
Outer()
Nested()
Inner()
}
fun box(): String {
Inner().foo()
Nested().bar()
baz()
return "OK"
}
}
fun box() = Outer().box()