[Test] Add test for KT-54209
This commit is contained in:
committed by
Space Team
parent
64e21af03b
commit
55aae5325c
+6
@@ -8968,6 +8968,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/deprecated/componentUsage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("deprecatedCompanionAndClassReference.kt")
|
||||
public void testDeprecatedCompanionAndClassReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedCompanionAndClassReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("deprecatedConstructor.kt")
|
||||
public void testDeprecatedConstructor() throws Exception {
|
||||
|
||||
+6
@@ -8968,6 +8968,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/deprecated/componentUsage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("deprecatedCompanionAndClassReference.kt")
|
||||
public void testDeprecatedCompanionAndClassReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedCompanionAndClassReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("deprecatedConstructor.kt")
|
||||
public void testDeprecatedConstructor() throws Exception {
|
||||
|
||||
+6
@@ -8968,6 +8968,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/deprecated/componentUsage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("deprecatedCompanionAndClassReference.kt")
|
||||
public void testDeprecatedCompanionAndClassReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedCompanionAndClassReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("deprecatedConstructor.kt")
|
||||
public void testDeprecatedConstructor() throws Exception {
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// ISSUE: KT-54209
|
||||
|
||||
class A {
|
||||
@Deprecated("Deprecated companion")
|
||||
companion object
|
||||
}
|
||||
|
||||
|
||||
fun test() {
|
||||
<!DEPRECATION!>A<!>::class
|
||||
A.<!DEPRECATION!>Companion<!>::class
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// ISSUE: KT-54209
|
||||
|
||||
class A {
|
||||
@Deprecated("Deprecated companion")
|
||||
companion object
|
||||
}
|
||||
|
||||
|
||||
fun test() {
|
||||
A::class
|
||||
A.<!DEPRECATION!>Companion<!>::class
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package
|
||||
|
||||
public fun test(): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
@kotlin.Deprecated(message = "Deprecated companion") public companion object Companion {
|
||||
private constructor Companion()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
Generated
+6
@@ -8974,6 +8974,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/deprecated/componentUsage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("deprecatedCompanionAndClassReference.kt")
|
||||
public void testDeprecatedCompanionAndClassReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedCompanionAndClassReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("deprecatedConstructor.kt")
|
||||
public void testDeprecatedConstructor() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user