Collect all deprecations, do not stop on the first found one

#KT-15245 In Progress
This commit is contained in:
Alexander Udalov
2016-12-14 14:18:49 +03:00
parent 82703d9cfd
commit 212240a008
4 changed files with 68 additions and 50 deletions
@@ -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<!>()