[FIR] Disable smartcasts to Nothing?
This commit is contained in:
+5
-1
@@ -288,13 +288,17 @@ class FirDataFlowAnalyzerImpl(transformer: FirBodyResolveTransformer) : FirDataF
|
|||||||
operandVariable,
|
operandVariable,
|
||||||
FirDataFlowInfo(setOf(session.builtinTypes.anyType.coneTypeUnsafe()), emptySet())
|
FirDataFlowInfo(setOf(session.builtinTypes.anyType.coneTypeUnsafe()), emptySet())
|
||||||
)
|
)
|
||||||
).addNotApprovedFact(
|
)
|
||||||
|
// TODO: design do we need casts to Nothing?
|
||||||
|
/*
|
||||||
|
flow = addNotApprovedFact(
|
||||||
expressionVariable, UnapprovedFirDataFlowInfo(
|
expressionVariable, UnapprovedFirDataFlowInfo(
|
||||||
eq(conditionValue.invert()!!),
|
eq(conditionValue.invert()!!),
|
||||||
operandVariable,
|
operandVariable,
|
||||||
FirDataFlowInfo(setOf(session.builtinTypes.nullableNothingType.coneTypeUnsafe()), emptySet())
|
FirDataFlowInfo(setOf(session.builtinTypes.nullableNothingType.coneTypeUnsafe()), emptySet())
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
node.flow = flow
|
node.flow = flow
|
||||||
|
|||||||
Reference in New Issue
Block a user