Retain data flow info after binary calls

Make autocasts in CandidateResolver when checking value argument types

 #KT-2825 In Progress
This commit is contained in:
Alexander Udalov
2012-11-12 17:37:05 +04:00
parent a71ea5c6db
commit 1fbe9b9a31
6 changed files with 131 additions and 34 deletions
@@ -1146,6 +1146,21 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpression.kt");
}
@TestMetadata("BinaryExpressionCompareToConvention.kt")
public void testBinaryExpressionCompareToConvention() throws Exception {
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpressionCompareToConvention.kt");
}
@TestMetadata("BinaryExpressionIdentifier.kt")
public void testBinaryExpressionIdentifier() throws Exception {
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpressionIdentifier.kt");
}
@TestMetadata("BinaryExpressionPlusConvention.kt")
public void testBinaryExpressionPlusConvention() throws Exception {
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpressionPlusConvention.kt");
}
@TestMetadata("DeepIf.kt")
public void testDeepIf() throws Exception {
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/DeepIf.kt");