Collect all deprecations, do not stop on the first found one
#KT-15245 In Progress
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// KT-15245 Report deprecation on associated declarations if level is greater than the deprecation on the declaration itself
|
||||
|
||||
@Deprecated("error", level = DeprecationLevel.ERROR)
|
||||
class Foo @Deprecated("warning", level = DeprecationLevel.WARNING) constructor()
|
||||
|
||||
fun test1() = <!DEPRECATION, DEPRECATION_ERROR!>Foo<!>()
|
||||
|
||||
fun test2(): <!DEPRECATION_ERROR!>Foo<!> = <!DEPRECATION, DEPRECATION_ERROR!>Foo<!>()
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package
|
||||
|
||||
public fun test1(): Foo
|
||||
public fun test2(): Foo
|
||||
|
||||
@kotlin.Deprecated(level = DeprecationLevel.ERROR, message = "error") public final class Foo {
|
||||
@kotlin.Deprecated(level = DeprecationLevel.WARNING, message = "warning") public constructor Foo()
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user