NI: introduce warning about implicitly inferred Nothing with existing non-Nothing expected type

^KT-35406 Fixed
This commit is contained in:
Victor Petukhov
2020-02-13 16:09:50 +03:00
parent e3184e407d
commit 51edf2b351
18 changed files with 414 additions and 42 deletions
@@ -23347,9 +23347,14 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
runTest("compiler/testData/diagnostics/tests/typeParameters/functionTypeAsUpperBound.kt");
}
@TestMetadata("implicitNothingAsTypeParameter.kt")
public void testImplicitNothingAsTypeParameter() throws Exception {
runTest("compiler/testData/diagnostics/tests/typeParameters/implicitNothingAsTypeParameter.kt");
@TestMetadata("implicitNothingAgainstNotNothingExpectedType.kt")
public void testImplicitNothingAgainstNotNothingExpectedType() throws Exception {
runTest("compiler/testData/diagnostics/tests/typeParameters/implicitNothingAgainstNotNothingExpectedType.kt");
}
@TestMetadata("implicitNothingInReturnPosition.kt")
public void testImplicitNothingInReturnPosition() throws Exception {
runTest("compiler/testData/diagnostics/tests/typeParameters/implicitNothingInReturnPosition.kt");
}
@TestMetadata("implicitNothingOnDelegates.kt")