Run classifier usage checkers on constructor calls

In some cases, REFERENCE_TARGET for annotation entries is the annotation
class descriptor, and in others -- the constructor of that class
This commit is contained in:
Alexander Udalov
2017-12-08 12:00:14 +01:00
parent 8cd7686535
commit 46b8deedf7
4 changed files with 9 additions and 11 deletions
@@ -5,7 +5,7 @@ open class Foo
fun test(f: <!DEPRECATION_ERROR!>Foo<!>) {
f.toString()
val g: <!DEPRECATION_ERROR!>Foo<!>? = <!UNRESOLVED_REFERENCE!>Foo<!>()
val g: <!DEPRECATION_ERROR!>Foo<!>? = <!DEPRECATION_ERROR!>Foo<!>()
}
class Bar : <!UNRESOLVED_REFERENCE, DEPRECATION_ERROR, DEBUG_INFO_UNRESOLVED_WITH_TARGET!>Foo<!>()
class Bar : <!DEPRECATION_ERROR!>Foo<!>()