Codegen tests for inner/nested classes

#KT-1174 In Progress
This commit is contained in:
Alexander Udalov
2013-01-14 19:37:12 +04:00
parent cc5ba53c80
commit 85bd41dfa5
15 changed files with 263 additions and 0 deletions
@@ -0,0 +1,31 @@
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()