fixed: smart cast of boolean variable didn't work in boolean expression

This commit is contained in:
Svetlana Isakova
2013-12-09 18:54:04 +04:00
parent cd6934bee8
commit 4d39dc38da
5 changed files with 30 additions and 11 deletions
@@ -1331,6 +1331,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/diagnostics/tests/checkArguments"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("booleanExpressions.kt")
public void testBooleanExpressions() throws Exception {
doTest("compiler/testData/diagnostics/tests/checkArguments/booleanExpressions.kt");
}
@TestMetadata("kt1897_diagnostic_part.kt")
public void testKt1897_diagnostic_part() throws Exception {
doTest("compiler/testData/diagnostics/tests/checkArguments/kt1897_diagnostic_part.kt");
@@ -4717,6 +4722,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/smartCastedReceiverWithGenerics.kt");
}
@TestMetadata("smartCastsAndBooleanExpressions.kt")
public void testSmartCastsAndBooleanExpressions() throws Exception {
doTest("compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/smartCastsAndBooleanExpressions.kt");
}
}
@TestMetadata("compiler/testData/diagnostics/tests/nullableTypes")