Fix for KT-3335: Creating imported super class' inner class fails in codegen

#KT-3335 Fixed
This commit is contained in:
Michael Bogdanov
2015-10-30 16:48:51 +03:00
parent 3bd7f87d2b
commit 65b85711e3
7 changed files with 177 additions and 6 deletions
@@ -0,0 +1,16 @@
open class A(val s: String) {
open inner class B(val s: String) {
fun testB() = s + this@A.s
}
open inner class C(): A("C") {
fun testC() =
B("B_").testB()
}
}
fun box(): String {
val res = A("A").C().testC()
return if (res == "B_C") "OK" else res;
}