[FIR] Report INVISIBLE_REFERENCE on the first unresolved qualifier

#KT-61719 Fixed
This commit is contained in:
Kirill Rakhman
2023-09-08 14:34:12 +02:00
committed by Space Team
parent 2127b2ce68
commit 2566dabfce
24 changed files with 67 additions and 118 deletions
@@ -104,12 +104,17 @@ class ConeHiddenCandidateError(
override val reason: String get() = "HIDDEN: ${describeSymbol(candidateSymbol)} is deprecated with DeprecationLevel.HIDDEN"
}
class ConeVisibilityError(
open class ConeVisibilityError(
override val symbol: FirBasedSymbol<*>
) : ConeDiagnosticWithSymbol<FirBasedSymbol<*>> {
override val reason: String get() = "HIDDEN: ${describeSymbol(symbol)} is invisible"
}
class ConeTypeVisibilityError(
symbol: FirBasedSymbol<*>,
val smallestUnresolvablePrefix: List<FirQualifierPart>,
) : ConeVisibilityError(symbol)
class ConeInapplicableWrongReceiver(override val candidates: Collection<AbstractCandidate>) : ConeDiagnosticWithCandidates {
override val reason: String
get() = "None of the following candidates is applicable because of receiver type mismatch: ${