Mark deprecated as a warning
#KT-3252 Fixed
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
fun test() {
|
||||
<info descr="'MyClass.<class-object-for-MyClass>' is deprecated. Use A instead">MyClass</info>.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
|
||||
<info descr="'MyTrait.<class-object-for-MyTrait>' is deprecated. Use A instead">MyTrait</info>.test
|
||||
<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 <info>test</info>: String = ""
|
||||
val test: String = ""
|
||||
}
|
||||
}
|
||||
|
||||
trait MyTrait {
|
||||
deprecated("Use A instead") class object {
|
||||
val <info>test</info>: String = ""
|
||||
val test: String = ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user