Fix typo (FirUpperBoundViolatedExpressionChecker)

This commit is contained in:
Mikhail Glukhikh
2022-09-14 16:15:14 +02:00
committed by Space
parent 8c475750b1
commit b314672130
@@ -29,15 +29,15 @@ object FirUpperBoundViolatedExpressionChecker : FirQualifiedAccessExpressionChec
// declarations with their declared bounds. // declarations with their declared bounds.
// it may be the called function declaration // it may be the called function declaration
// or the class declaration // or the class declaration
val calleReference = expression.calleeReference val calleeReference = expression.calleeReference
var calleeSymbol: FirCallableSymbol<*>? = null var calleeSymbol: FirCallableSymbol<*>? = null
if (calleReference is FirResolvedNamedReference) { if (calleeReference is FirResolvedNamedReference) {
calleeSymbol = calleReference.toResolvedCallableSymbol() calleeSymbol = calleeReference.toResolvedCallableSymbol()
} else if (calleReference is FirErrorNamedReference) { } else if (calleeReference is FirErrorNamedReference) {
if (calleReference.diagnostic is ConeInapplicableWrongReceiver) { if (calleeReference.diagnostic is ConeInapplicableWrongReceiver) {
return return
} }
calleeSymbol = calleReference.candidateSymbol as? FirCallableSymbol<*> calleeSymbol = calleeReference.candidateSymbol as? FirCallableSymbol<*>
} }
val typeArguments: List<TypeArgumentWithSourceInfo> val typeArguments: List<TypeArgumentWithSourceInfo>