Fix default type of static classes inside parametrized parents
Default type of LazySubstitutingClassDescriptor is not lazy. However, most of default types are, and there is an optimization in KotlinTypeFactory, which uses default type for simple type without type arguments and/or annotations. LazySubstitutingClassDescriptor's default type creates simple type with factory, which may therefore cause recursion. #KT-34029 Fixed
This commit is contained in:
@@ -10786,6 +10786,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt3344.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt34029.kt")
|
||||
public void testKt34029() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt34029.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt34282.kt")
|
||||
public void testKt34282() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt34282.kt");
|
||||
|
||||
Generated
+5
@@ -10781,6 +10781,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt3344.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt34029.kt")
|
||||
public void testKt34029() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt34029.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt34282.kt")
|
||||
public void testKt34282() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt34282.kt");
|
||||
|
||||
Reference in New Issue
Block a user