de3f31cf78
No support for inheritance deprecations and deprecations in qualifier's parts
9 lines
379 B
Kotlin
Vendored
9 lines
379 B
Kotlin
Vendored
// 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_ERROR!>Foo<!>()
|
|
|
|
fun test2(): <!DEPRECATION_ERROR!>Foo<!> = <!DEPRECATION_ERROR!>Foo<!>()
|