a7fc32c8da
Otherwise there will be just an unresolved reference that doesn't give any useful information #KT-8959 Fixed
65 lines
1.0 KiB
Kotlin
Vendored
65 lines
1.0 KiB
Kotlin
Vendored
open class A {
|
|
inner class B {
|
|
fun foo() {}
|
|
}
|
|
|
|
inner class D
|
|
|
|
companion object {
|
|
class B {
|
|
fun bar() {}
|
|
}
|
|
|
|
class C
|
|
}
|
|
|
|
init {
|
|
B().foo()
|
|
B().<!UNRESOLVED_REFERENCE!>bar<!>()
|
|
|
|
D()
|
|
C()
|
|
}
|
|
}
|
|
|
|
class E: A() {
|
|
init {
|
|
B().foo()
|
|
B().<!UNRESOLVED_REFERENCE!>bar<!>()
|
|
|
|
D()
|
|
C()
|
|
}
|
|
|
|
object Z {
|
|
init {
|
|
<!RESOLUTION_TO_CLASSIFIER!>B<!>().<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>foo<!>()
|
|
<!RESOLUTION_TO_CLASSIFIER!>B<!>().<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>bar<!>()
|
|
|
|
<!RESOLUTION_TO_CLASSIFIER!>D<!>()
|
|
C()
|
|
}
|
|
}
|
|
}
|
|
|
|
class F: A() {
|
|
class B {
|
|
fun fas() {}
|
|
}
|
|
inner class D {
|
|
fun f() {}
|
|
}
|
|
|
|
init {
|
|
B().fas()
|
|
D().f()
|
|
}
|
|
|
|
companion object {
|
|
init {
|
|
B().fas()
|
|
<!RESOLUTION_TO_CLASSIFIER!>D<!>().<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>f<!>()
|
|
}
|
|
}
|
|
}
|