[NI] Fix reporting smartcasts on arguments of binary expression

This commit is contained in:
Dmitriy Novozhilov
2019-04-23 11:27:54 +03:00
committed by Mikhail Zarechenskiy
parent 5715c32216
commit 421fda6e92
@@ -170,6 +170,7 @@ class DiagnosticReporterByTrackingStrategy(
context.statementFilter
)
val dataFlowValue = dataFlowValueFactory.createDataFlowValue(expressionArgument.receiver.receiverValue, context)
val call = if (call.callElement is KtBinaryExpression) null else call
SmartCastManager.checkAndRecordPossibleCast(
dataFlowValue, smartCastDiagnostic.smartCastType, argumentExpression, context, call,
recordExpressionType = true