Warn for unnecessary (!!) assertion after method with generics

#KT-12276 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-04-03 02:37:43 +03:00
parent 4aa808b250
commit 3cdf6c898a
4 changed files with 46 additions and 9 deletions
@@ -13701,6 +13701,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/smartCastsAndBooleanExpressions.kt");
doTest(fileName);
}
@TestMetadata("unnecessaryNotNullAssertion.kt")
public void testUnnecessaryNotNullAssertion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/unnecessaryNotNullAssertion.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/diagnostics/tests/nullableTypes")