[NI] Remove Nothing result type restriction in most cases

Make Nothing as result type not suitable only for if, when, try and ?: special functions.
This commit is contained in:
Pavel Kirpichenkov
2019-12-23 12:28:39 +03:00
parent ae1630f376
commit a9391c8dfb
21 changed files with 172 additions and 41 deletions
@@ -10901,6 +10901,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt3174.kt");
}
@TestMetadata("kt32106.kt")
public void testKt32106() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt32106.kt");
}
@TestMetadata("kt32250.kt")
public void testKt32250() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt32250.kt");
@@ -10896,6 +10896,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt3174.kt");
}
@TestMetadata("kt32106.kt")
public void testKt32106() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt32106.kt");
}
@TestMetadata("kt32250.kt")
public void testKt32250() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt32250.kt");