[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");
|
||||
|
||||
Reference in New Issue
Block a user