[FIR] Report INVISIBLE_REFERENCE on the first unresolved qualifier
#KT-61719 Fixed
This commit is contained in:
committed by
Space Team
parent
2127b2ce68
commit
2566dabfce
+6
-1
@@ -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: ${
|
||||
|
||||
Reference in New Issue
Block a user