[FIR] Reproduce KT-63529
^KT-63529
This commit is contained in:
committed by
Space Team
parent
9d0f17da26
commit
a4b7697714
+6
@@ -1401,6 +1401,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/tailRecursionComplex.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tailrec.kt")
|
||||
public void testTailrec() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/tailrec.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TraitOverrideObjectMethods.kt")
|
||||
public void testTraitOverrideObjectMethods() throws Exception {
|
||||
|
||||
+6
@@ -1401,6 +1401,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/tailRecursionComplex.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tailrec.kt")
|
||||
public void testTailrec() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/tailrec.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TraitOverrideObjectMethods.kt")
|
||||
public void testTraitOverrideObjectMethods() throws Exception {
|
||||
|
||||
+6
@@ -1401,6 +1401,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/tailRecursionComplex.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tailrec.kt")
|
||||
public void testTailrec() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/tailrec.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TraitOverrideObjectMethods.kt")
|
||||
public void testTraitOverrideObjectMethods() throws Exception {
|
||||
|
||||
+6
@@ -1401,6 +1401,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/tailRecursionComplex.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tailrec.kt")
|
||||
public void testTailrec() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/tailrec.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TraitOverrideObjectMethods.kt")
|
||||
public void testTraitOverrideObjectMethods() throws Exception {
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// ISSUE: KT-63529
|
||||
|
||||
private <!NO_TAIL_CALLS_FOUND!>tailrec<!> fun Context.findActivityOrNull(): Activity? {
|
||||
return mBase<!UNNECESSARY_SAFE_CALL!>?.<!><!NON_TAIL_RECURSIVE_CALL!>findActivityOrNull<!>()
|
||||
}
|
||||
abstract class Context
|
||||
open class Activity
|
||||
var mBase: Context = TODO()
|
||||
@@ -0,0 +1,8 @@
|
||||
// ISSUE: KT-63529
|
||||
|
||||
private tailrec fun Context.findActivityOrNull(): Activity? {
|
||||
return mBase<!UNNECESSARY_SAFE_CALL!>?.<!>findActivityOrNull()
|
||||
}
|
||||
abstract class Context
|
||||
open class Activity
|
||||
var mBase: Context = TODO()
|
||||
Generated
+6
@@ -1401,6 +1401,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/tailRecursionComplex.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tailrec.kt")
|
||||
public void testTailrec() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/tailrec.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TraitOverrideObjectMethods.kt")
|
||||
public void testTraitOverrideObjectMethods() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user