Report warnings on overrides with wrong types nullability

^KT-48899 Fixed
This commit is contained in:
Denis.Zharkov
2021-09-24 16:33:07 +03:00
committed by TeamCityServer
parent ec97dab6cd
commit f7ef551f99
29 changed files with 672 additions and 42 deletions
@@ -17848,6 +17848,18 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/j+k/types/notNullTypeParameterWithKotlinNullableWarnings.kt");
}
@Test
@TestMetadata("notNullTypeParameterWithKotlinOverridesDefinitelyNonNullable.kt")
public void testNotNullTypeParameterWithKotlinOverridesDefinitelyNonNullable() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/types/notNullTypeParameterWithKotlinOverridesDefinitelyNonNullable.kt");
}
@Test
@TestMetadata("notNullTypeParameterWithKotlinOverridesWarning.kt")
public void testNotNullTypeParameterWithKotlinOverridesWarning() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/types/notNullTypeParameterWithKotlinOverridesWarning.kt");
}
@Test
@TestMetadata("returnCollection.kt")
public void testReturnCollection() throws Exception {