[Test] Add test for KT-54209
This commit is contained in:
committed by
Space Team
parent
64e21af03b
commit
55aae5325c
+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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user