[FIR TEST] Add extra test for inner classes inside hierarchy

This commit is contained in:
Mikhail Glukhikh
2020-05-08 18:31:48 +03:00
parent f48ff2679e
commit 535b4434a8
4 changed files with 123 additions and 0 deletions
@@ -0,0 +1,25 @@
open class Base {
open inner class Inner
}
class Derived : Base() {
inner class InnerDerived : Inner() {
inner class VeryInner : <!UNRESOLVED_REFERENCE!>Inner<!>() {
inner class VeryVeryInner : <!UNRESOLVED_REFERENCE!>Inner<!>()
}
}
}
open class A(val s: String) {
open inner class B(s: String): A(s)
open inner class C(s: String, additional: Double): B(s)
open inner class D(other: Int, another: Long, s: String) : C(s, another.toDouble())
open inner class E : D(0, 42L, "OK")
inner class F : E()
}
fun box(): String = A("Fail").F().s