Don't highlight 'this' references as deprecated

#KT-17613 Fixed
This commit is contained in:
Dmitry Jemerov
2017-05-08 16:12:44 +02:00
parent 5d31e00d27
commit 675305fef3
7 changed files with 47 additions and 1 deletions
+3 -1
View File
@@ -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
+14
View File
@@ -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