[NI] Make constraint check for type variables with complex dependency
Additional check for trivial constraints is needed to make lambda analysis before outer variable fixation to Nothing(?) ^KT-37627 Fixed
This commit is contained in:
@@ -10732,6 +10732,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/approximationWithDefNotNullInInvPositionDuringInference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("complexDependencyWihtoutProperConstraints.kt")
|
||||
public void testComplexDependencyWihtoutProperConstraints() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/complexDependencyWihtoutProperConstraints.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constraintFromVariantTypeWithNestedProjection.kt")
|
||||
public void testConstraintFromVariantTypeWithNestedProjection() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.kt");
|
||||
|
||||
+5
@@ -2886,6 +2886,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt36249.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt37627.kt")
|
||||
public void testKt37627() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt37627.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4975.kt")
|
||||
public void testKt4975() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt4975.kt");
|
||||
|
||||
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
Generated
+5
@@ -2886,6 +2886,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt36249.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt37627.kt")
|
||||
public void testKt37627() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt37627.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4975.kt")
|
||||
public void testKt4975() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inference/kt4975.kt");
|
||||
|
||||
Generated
+5
@@ -10727,6 +10727,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/approximationWithDefNotNullInInvPositionDuringInference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("complexDependencyWihtoutProperConstraints.kt")
|
||||
public void testComplexDependencyWihtoutProperConstraints() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/complexDependencyWihtoutProperConstraints.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constraintFromVariantTypeWithNestedProjection.kt")
|
||||
public void testConstraintFromVariantTypeWithNestedProjection() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.kt");
|
||||
|
||||
Reference in New Issue
Block a user