[NI] Take into account captured types for type depth computation
It's needed to estimate the count of steps for type approximation algorithm. After the estimated count of steps, we consider such type recursive and this algorithm returns some default value #KT-28598 Fixed
This commit is contained in:
@@ -7943,6 +7943,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/argumentsForT.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("capturingOfDeepNestedType.kt")
|
||||
public void testCapturingOfDeepNestedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/capturingOfDeepNestedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("commonSupertypeContravariant.kt")
|
||||
public void testCommonSupertypeContravariant() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/commonSupertypeContravariant.kt");
|
||||
|
||||
Generated
+5
@@ -7943,6 +7943,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/generics/argumentsForT.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("capturingOfDeepNestedType.kt")
|
||||
public void testCapturingOfDeepNestedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/capturingOfDeepNestedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("commonSupertypeContravariant.kt")
|
||||
public void testCommonSupertypeContravariant() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/commonSupertypeContravariant.kt");
|
||||
|
||||
Reference in New Issue
Block a user