b3aa2dd60f
This will fix problems with declaration clash. Otherwise, a designation path to the constructor of the second class from the snippet ``` class A class A ``` Will contain the first class instead of the second Also, this is more performed than trying to find a segment of a path by providers ^KT-58546 Fixed
42 lines
486 B
Kotlin
42 lines
486 B
Kotlin
// MEMBER_CLASS_FILTER: org.jetbrains.kotlin.fir.symbols.impl.FirConstructorSymbol
|
|
sealed class A
|
|
|
|
class B : A()
|
|
|
|
interface C : A
|
|
|
|
interface D : C, A
|
|
|
|
class E : B, A()
|
|
|
|
sealed class P {
|
|
object H: P()
|
|
class J : P()
|
|
|
|
object T {
|
|
object V : P()
|
|
class M : P()
|
|
}
|
|
|
|
val p: P = object : P() {
|
|
|
|
}
|
|
|
|
val r = object : P() {
|
|
|
|
}
|
|
}
|
|
|
|
class K : P()
|
|
|
|
object B {
|
|
class <caret>I : P()
|
|
}
|
|
|
|
fun test() {
|
|
class L : P()
|
|
val a = object : P() {
|
|
|
|
}
|
|
}
|