[Test] Reproduce KT-66313

This commit is contained in:
Dmitriy Novozhilov
2024-03-05 14:31:45 +02:00
committed by Space Team
parent 5fe3fa878e
commit fece081265
7 changed files with 60 additions and 0 deletions
@@ -32280,6 +32280,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/resolve/capturedTypesInLambdaParameter.kt");
}
@Test
@TestMetadata("complexOrderAndImplicitTypes.kt")
public void testComplexOrderAndImplicitTypes() {
runTest("compiler/testData/diagnostics/tests/resolve/complexOrderAndImplicitTypes.kt");
}
@Test
@TestMetadata("constructorVsCompanion.kt")
public void testConstructorVsCompanion() {
@@ -32280,6 +32280,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/resolve/capturedTypesInLambdaParameter.kt");
}
@Test
@TestMetadata("complexOrderAndImplicitTypes.kt")
public void testComplexOrderAndImplicitTypes() {
runTest("compiler/testData/diagnostics/tests/resolve/complexOrderAndImplicitTypes.kt");
}
@Test
@TestMetadata("constructorVsCompanion.kt")
public void testConstructorVsCompanion() {
@@ -29978,6 +29978,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
runTest("compiler/testData/diagnostics/tests/resolve/capturedTypesInLambdaParameter.kt");
}
@Test
@TestMetadata("complexOrderAndImplicitTypes.kt")
public void testComplexOrderAndImplicitTypes() {
runTest("compiler/testData/diagnostics/tests/resolve/complexOrderAndImplicitTypes.kt");
}
@Test
@TestMetadata("constructorVsCompanion.kt")
public void testConstructorVsCompanion() {
@@ -29990,6 +29990,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
runTest("compiler/testData/diagnostics/tests/resolve/capturedTypesInLambdaParameter.kt");
}
@Test
@TestMetadata("complexOrderAndImplicitTypes.kt")
public void testComplexOrderAndImplicitTypes() {
runTest("compiler/testData/diagnostics/tests/resolve/complexOrderAndImplicitTypes.kt");
}
@Test
@TestMetadata("constructorVsCompanion.kt")
public void testConstructorVsCompanion() {
@@ -0,0 +1,15 @@
// ISSUE: KT-66313
val foo: String get() = ""
class Test1 {
private val otherFoo = foo
fun getFoo() = <!TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM!>otherFoo<!>
}
class Test2 {
fun getFoo() = otherFoo
private val otherFoo = foo
}
@@ -0,0 +1,15 @@
// ISSUE: KT-66313
val foo: String get() = ""
class Test1 {
private val otherFoo = foo
fun getFoo() = otherFoo
}
class Test2 {
fun getFoo() = otherFoo
private val otherFoo = foo
}
@@ -32280,6 +32280,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/resolve/capturedTypesInLambdaParameter.kt");
}
@Test
@TestMetadata("complexOrderAndImplicitTypes.kt")
public void testComplexOrderAndImplicitTypes() {
runTest("compiler/testData/diagnostics/tests/resolve/complexOrderAndImplicitTypes.kt");
}
@Test
@TestMetadata("constructorVsCompanion.kt")
public void testConstructorVsCompanion() {