Don't highlight 'this' references as deprecated
#KT-17613 Fixed
This commit is contained in:
+3
-1
@@ -2,7 +2,9 @@ package test
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
@Deprecated("Use A instead") open class MyClass {}
|
||||
@Deprecated("Use A instead") open class MyClass {
|
||||
val test = this
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val a : <warning descr="[DEPRECATION] 'MyClass' is deprecated. Use A instead">MyClass</warning>? = null
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package test
|
||||
|
||||
class A {
|
||||
constructor(x: Int) : <warning descr="[DEPRECATION] 'constructor A(Int, Int)' is deprecated. use one-arg overload">this</warning>(x, 0) {
|
||||
}
|
||||
|
||||
@Deprecated("use one-arg overload")
|
||||
constructor(x: Int, y: Int) {
|
||||
x + y
|
||||
}
|
||||
}
|
||||
|
||||
// NO_CHECK_INFOS
|
||||
// NO_CHECK_WEAK_WARNINGS
|
||||
Reference in New Issue
Block a user