[NI] Dont' add trivial constraints with Nothing from incorporation
#KT-24490 Fixed #KT-26816 Fixed
This commit is contained in:
@@ -9962,11 +9962,31 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/complexDependancyOnVariableWithTrivialConstraint.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generateConstraintWithInnerNothingType.kt")
|
||||
public void testGenerateConstraintWithInnerNothingType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/generateConstraintWithInnerNothingType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitNothingConstraintFromReturn.kt")
|
||||
public void testImplicitNothingConstraintFromReturn() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/implicitNothingConstraintFromReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt24490.kt")
|
||||
public void testKt24490() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/kt24490.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNothingAndExpectedType.kt")
|
||||
public void testLambdaNothingAndExpectedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedLambdaInferenceWithIncorporationOfVariables.kt")
|
||||
public void testNestedLambdaInferenceWithIncorporationOfVariables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/nestedLambdaInferenceWithIncorporationOfVariables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nothingWithCallableReference.kt")
|
||||
public void testNothingWithCallableReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/nothingWithCallableReference.kt");
|
||||
|
||||
+5
@@ -1822,6 +1822,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedLambdaInferenceWithListMap.kt")
|
||||
public void testNestedLambdaInferenceWithListMap() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedLambdaInferenceWithListMap.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedSuspendCallInsideLambda.kt")
|
||||
public void testNestedSuspendCallInsideLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedSuspendCallInsideLambda.kt");
|
||||
|
||||
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
Generated
+5
@@ -1822,6 +1822,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt15516.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedLambdaInferenceWithListMap.kt")
|
||||
public void testNestedLambdaInferenceWithListMap() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedLambdaInferenceWithListMap.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedSuspendCallInsideLambda.kt")
|
||||
public void testNestedSuspendCallInsideLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedSuspendCallInsideLambda.kt");
|
||||
|
||||
Generated
+20
@@ -9962,11 +9962,31 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/complexDependancyOnVariableWithTrivialConstraint.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generateConstraintWithInnerNothingType.kt")
|
||||
public void testGenerateConstraintWithInnerNothingType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/generateConstraintWithInnerNothingType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitNothingConstraintFromReturn.kt")
|
||||
public void testImplicitNothingConstraintFromReturn() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/implicitNothingConstraintFromReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt24490.kt")
|
||||
public void testKt24490() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/kt24490.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNothingAndExpectedType.kt")
|
||||
public void testLambdaNothingAndExpectedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedLambdaInferenceWithIncorporationOfVariables.kt")
|
||||
public void testNestedLambdaInferenceWithIncorporationOfVariables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/nestedLambdaInferenceWithIncorporationOfVariables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nothingWithCallableReference.kt")
|
||||
public void testNothingWithCallableReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nothingType/nothingWithCallableReference.kt");
|
||||
|
||||
Reference in New Issue
Block a user