[FIR] Properly set resolvedToCompanionObject field for lhs of GetClassCall
^KT-54209 Fixed
This commit is contained in:
committed by
Space Team
parent
55aae5325c
commit
248c45acb3
+1
@@ -949,6 +949,7 @@ open class FirExpressionsResolveTransformer(transformer: FirBodyResolveTransform
|
|||||||
|
|
||||||
val typeOfExpression = when (val lhs = transformedGetClassCall.argument) {
|
val typeOfExpression = when (val lhs = transformedGetClassCall.argument) {
|
||||||
is FirResolvedQualifier -> {
|
is FirResolvedQualifier -> {
|
||||||
|
lhs.replaceResolvedToCompanionObject(newResolvedToCompanionObject = false)
|
||||||
val symbol = lhs.symbol
|
val symbol = lhs.symbol
|
||||||
val typeArguments: Array<ConeTypeProjection> =
|
val typeArguments: Array<ConeTypeProjection> =
|
||||||
if (lhs.typeArguments.isNotEmpty()) {
|
if (lhs.typeArguments.isNotEmpty()) {
|
||||||
|
|||||||
-12
@@ -1,12 +0,0 @@
|
|||||||
// ISSUE: KT-54209
|
|
||||||
|
|
||||||
class A {
|
|
||||||
@Deprecated("Deprecated companion")
|
|
||||||
companion object
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
fun test() {
|
|
||||||
<!DEPRECATION!>A<!>::class
|
|
||||||
A.<!DEPRECATION!>Companion<!>::class
|
|
||||||
}
|
|
||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// FIR_IDENTICAL
|
||||||
// ISSUE: KT-54209
|
// ISSUE: KT-54209
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
|
|||||||
Reference in New Issue
Block a user