KT-2991 Don't generate UNNECESSARY_NOT_NULL_ASSERTION on variables of

generic type T:Any?

 #KT-2991 Fixed
This commit is contained in:
Andrey Breslav
2012-10-25 07:15:30 +04:00
parent edb8797fa6
commit 3e38870ecc
3 changed files with 24 additions and 10 deletions
@@ -2304,6 +2304,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/nullableTypes/baseWithNullableUpperBound.kt");
}
@TestMetadata("nullAssertOnTypeWithNullableUpperBound.kt")
public void testNullAssertOnTypeWithNullableUpperBound() throws Exception {
doTest("compiler/testData/diagnostics/tests/nullableTypes/nullAssertOnTypeWithNullableUpperBound.kt");
}
@TestMetadata("redundantNullable.kt")
public void testRedundantNullable() throws Exception {
doTest("compiler/testData/diagnostics/tests/nullableTypes/redundantNullable.kt");