Don't report warning about implicitly inferred Nothing for call arguments if there is non-Nothing return type

^KT-43108 Fixed
This commit is contained in:
Victor Petukhov
2020-11-03 13:03:09 +03:00
parent 7859287337
commit f052bc341c
7 changed files with 32 additions and 2 deletions
@@ -3357,6 +3357,11 @@ public class FirOldFrontendDiagnosticsTestWithStdlibGenerated extends AbstractFi
public void testDontInferToNullableNothingInDelegates() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/nothingType/dontInferToNullableNothingInDelegates.kt");
}
@TestMetadata("dontSpreadWarningToNotReturningNothingSubResolvedAtoms.kt")
public void testDontSpreadWarningToNotReturningNothingSubResolvedAtoms() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/nothingType/dontSpreadWarningToNotReturningNothingSubResolvedAtoms.kt");
}
}
}