Report deprecation on typealias companion object for deprecated alias

This commit is contained in:
Dmitry Petrov
2017-08-09 17:31:39 +03:00
parent c180de563f
commit 674d30cd76
8 changed files with 79 additions and 12 deletions
@@ -0,0 +1,12 @@
class Relevant {
companion object {
val value = ""
}
}
@Deprecated("Use Relevant")
typealias Obsolete = Relevant
fun test1() = <!DEPRECATION!>Obsolete<!>
fun test2() = <!DEPRECATION!>Obsolete<!>.value
fun test3() = <!DEPRECATION!>Obsolete<!>.toString()
@@ -0,0 +1,21 @@
package
public fun test1(): Relevant.Companion
public fun test2(): kotlin.String
public fun test3(): kotlin.String
public final class Relevant {
public constructor Relevant()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
public companion object Companion {
private constructor Companion()
public final val value: kotlin.String = ""
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
}
@kotlin.Deprecated(message = "Use Relevant") public typealias Obsolete = Relevant