[FIR2IR] Process anonymous object nested classes correctly

#KT-42373 Fixed
This commit is contained in:
Mikhail Glukhikh
2020-10-01 10:42:46 +03:00
parent 76cdf97b6d
commit 3cd552cb43
6 changed files with 268 additions and 7 deletions
@@ -0,0 +1,14 @@
fun box(): String {
val obj = object {
val end = "K"
fun foo() = Some("O").bar()
inner class Some(s: String) : Base(s) {
fun bar() = s + end
}
open inner class Base(val s: String)
}
return obj.foo()
}