Files
kotlin/compiler/testData/codegen/box/innerNested/extensionFun.kt
Alexander Udalov 7ce62a5b64 Remove generated codegen tests, move all testData to box/
A single test file will be generated out of box/ directory
2013-01-28 18:20:21 +04:00

32 lines
443 B
Kotlin

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()