don't report autocast on left expression in equality

if it was checked for not-null beforehand
This commit is contained in:
Svetlana Isakova
2013-12-09 16:11:35 +04:00
parent 90535283ba
commit 4a26c9df04
3 changed files with 21 additions and 2 deletions
@@ -4577,6 +4577,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/AssertNotNull.kt");
}
@TestMetadata("equalityUnderNotNullCheck.kt")
public void testEqualityUnderNotNullCheck() throws Exception {
doTest("compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/equalityUnderNotNullCheck.kt");
}
@TestMetadata("funcLiteralArgsInsideAmbiguity.kt")
public void testFuncLiteralArgsInsideAmbiguity() throws Exception {
doTest("compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/funcLiteralArgsInsideAmbiguity.kt");