[FIR][checkers] Handle ConeHiddenCandidateError in FirDestructuringDeclarationChecker properly
#KT-66595 Fixed
This commit is contained in:
committed by
Space Team
parent
89a0cde514
commit
e9d5396fa9
+9
@@ -124,6 +124,15 @@ object FirDestructuringDeclarationChecker : FirPropertyChecker(MppCheckerKind.Co
|
|||||||
context
|
context
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
is ConeHiddenCandidateError -> {
|
||||||
|
reporter.reportOn(
|
||||||
|
source,
|
||||||
|
FirErrors.COMPONENT_FUNCTION_MISSING,
|
||||||
|
diagnostic.candidate.callInfo.name,
|
||||||
|
destructuringDeclarationType,
|
||||||
|
context
|
||||||
|
)
|
||||||
|
}
|
||||||
is ConeInapplicableWrongReceiver -> {
|
is ConeInapplicableWrongReceiver -> {
|
||||||
reporter.reportOn(
|
reporter.reportOn(
|
||||||
source,
|
source,
|
||||||
|
|||||||
Vendored
-11
@@ -1,11 +0,0 @@
|
|||||||
// TARGET_FRONTEND: ClassicFrontend
|
|
||||||
// ^ reason for a FIR mute: KT-66595
|
|
||||||
|
|
||||||
class SimpleKlass {
|
|
||||||
@Deprecated("deprecated and hidden", level = DeprecationLevel.HIDDEN)
|
|
||||||
operator fun component1(): Int = 42
|
|
||||||
}
|
|
||||||
|
|
||||||
fun test(simpleKlass: SimpleKlass) {
|
|
||||||
val (s1) = simpleKlass
|
|
||||||
}
|
|
||||||
Vendored
+1
-2
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_FRONTEND: ClassicFrontend
|
// FIR_IDENTICAL
|
||||||
// ^ reason for a FIR mute: KT-66595
|
|
||||||
|
|
||||||
class SimpleKlass {
|
class SimpleKlass {
|
||||||
@Deprecated("deprecated and hidden", level = DeprecationLevel.HIDDEN)
|
@Deprecated("deprecated and hidden", level = DeprecationLevel.HIDDEN)
|
||||||
|
|||||||
Reference in New Issue
Block a user