9422fea0c4
#KT-3252 Fixed
21 lines
523 B
Kotlin
21 lines
523 B
Kotlin
fun test() {
|
|
<warning descr="'MyClass.<class-object-for-MyClass>' is deprecated. Use A instead">MyClass</warning>.test
|
|
MyClass()
|
|
val a: MyClass? = null
|
|
val b: MyTrait? = null
|
|
<warning descr="'MyTrait.<class-object-for-MyTrait>' is deprecated. Use A instead">MyTrait</warning>.test
|
|
|
|
a == b
|
|
}
|
|
|
|
class MyClass(): MyTrait {
|
|
deprecated("Use A instead") class object {
|
|
val test: String = ""
|
|
}
|
|
}
|
|
|
|
trait MyTrait {
|
|
deprecated("Use A instead") class object {
|
|
val test: String = ""
|
|
}
|
|
} |