Don't generate UNNECESSARY_SAFE_CALL on variables of generic type <T: Any?>

This commit is contained in:
Andrey Breslav
2012-10-25 12:00:27 +04:00
parent 3e38870ecc
commit b5385788a3
6 changed files with 70 additions and 6 deletions
@@ -2319,6 +2319,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/nullableTypes/redundantNullableInSupertype.kt");
}
@TestMetadata("safeCallOnTypeWithNullableUpperBound.kt")
public void testSafeCallOnTypeWithNullableUpperBound() throws Exception {
doTest("compiler/testData/diagnostics/tests/nullableTypes/safeCallOnTypeWithNullableUpperBound.kt");
}
}
@TestMetadata("compiler/testData/diagnostics/tests/objects")