f09ba64234
- Store options for test in file - Change default for namesHighlightingTest - Combine highlighting and deprecated tests
24 lines
568 B
Kotlin
24 lines
568 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 = ""
|
|
}
|
|
}
|
|
|
|
// NO_CHECK_INFOS
|
|
// NO_CHECK_WEAK_WARNINGS |