[NI] Fix reporting smartcasts on arguments of binary expression
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
5715c32216
commit
421fda6e92
+1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user