Mark deprecated as a warning

#KT-3252 Fixed
This commit is contained in:
Natalia.Ukhorskaya
2013-01-21 16:34:07 +04:00
parent d7c8655966
commit 9422fea0c4
15 changed files with 100 additions and 87 deletions
@@ -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 = ""
}
}