f09ba64234
- Store options for test in file - Change default for namesHighlightingTest - Combine highlighting and deprecated tests
21 lines
673 B
Kotlin
21 lines
673 B
Kotlin
package test
|
|
|
|
import java.util.ArrayList
|
|
|
|
deprecated("Use A instead") open class MyClass {}
|
|
|
|
fun test() {
|
|
val a : <warning descr="'test.MyClass' is deprecated. Use A instead">MyClass</warning>? = null
|
|
val b = <warning descr="'test.MyClass' is deprecated. Use A instead">MyClass</warning>()
|
|
val c = ArrayList<<warning descr="'test.MyClass' is deprecated. Use A instead">MyClass</warning>>()
|
|
|
|
a == b && a == c
|
|
}
|
|
|
|
class Test(): <warning descr="'test.MyClass' is deprecated. Use A instead">MyClass</warning>() {}
|
|
|
|
class Test2(param: <warning descr="'test.MyClass' is deprecated. Use A instead">MyClass</warning>) {}
|
|
|
|
// NO_CHECK_INFOS
|
|
// NO_CHECK_WEAK_WARNINGS
|