FIR: Minor. Remove when branch that is just the same as "else"

This commit is contained in:
Denis Zharkov
2020-05-22 13:15:29 +03:00
parent 93f39d5df9
commit 233cf13bdc
@@ -71,16 +71,6 @@ fun Candidate.resolveArgumentExpression(
)
else
preprocessCallableReference(argument, expectedType)
// NB: FirCallableReferenceAccess should be checked earlier
is FirQualifiedAccessExpression -> resolvePlainExpressionArgument(
csBuilder,
argument,
expectedType,
sink,
isReceiver,
isDispatch,
isSafeCall
)
// TODO:!
is FirAnonymousFunction -> preprocessLambdaArgument(csBuilder, argument, expectedType, expectedTypeRef)
// TODO:!
@@ -359,4 +349,4 @@ fun FirTypeRef.isExtensionFunctionType(session: FirSession): Boolean {
if (typeAlias.expandedTypeRef.annotations.any(FirAnnotationCall::isExtensionFunctionAnnotationCall)) return true
return false
}
}