Files
kotlin-fork/idea/testData/highlighter/deprecated/ClassObject.kt
T
Nikolay Krasko f09ba64234 Refactoring: Use generators for highlighting tests
- Store options for test in file
- Change default for namesHighlightingTest
- Combine highlighting and deprecated tests
2013-10-03 23:35:53 +04:00

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