CAST_NEVER_SUCCEEDS: do not report when casting nullable to nullable #KT-260 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-08-09 16:41:30 +03:00
parent 2b44335c27
commit 098520de64
4 changed files with 22 additions and 2 deletions
@@ -2673,6 +2673,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("NullableToNullable.kt")
public void testNullableToNullable() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/cast/NullableToNullable.kt");
doTest(fileName);
}
@TestMetadata("WhenErasedDisallowFromAny.kt")
public void testWhenErasedDisallowFromAny() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/cast/WhenErasedDisallowFromAny.kt");