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:
+5
@@ -3507,6 +3507,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
Generated
+5
@@ -3507,6 +3507,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user