[NI] Remove hack for special functions
Treating special functions for `if`, `when`, `try`, `?:` as not accepting `Nothing` result type is incorrect. Making so leads to cases with uninferred `Nothing` result type for inner calls and lost data flow info.
This commit is contained in:
@@ -17965,6 +17965,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/SpecififcityByReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("testNestedSpecialCalls.kt")
|
||||
public void testTestNestedSpecialCalls() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/testNestedSpecialCalls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeMismatchOnUnaryOperations.kt")
|
||||
public void testTypeMismatchOnUnaryOperations() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.kt");
|
||||
|
||||
Generated
+5
@@ -17955,6 +17955,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/SpecififcityByReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("testNestedSpecialCalls.kt")
|
||||
public void testTestNestedSpecialCalls() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/testNestedSpecialCalls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeMismatchOnUnaryOperations.kt")
|
||||
public void testTypeMismatchOnUnaryOperations() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/TypeMismatchOnUnaryOperations.kt");
|
||||
|
||||
Reference in New Issue
Block a user