Check deprecated annotations with use site targets

This commit is contained in:
Yan Zhulanow
2015-08-07 16:27:59 +03:00
parent 1a477bd540
commit 9838f9c942
6 changed files with 69 additions and 10 deletions
@@ -11,6 +11,6 @@ public class A {
// FILE: B.kt
class B(private @deprecated val foo: String) : <!DEPRECATED_SYMBOL_WITH_MESSAGE!>A<!>() {
class B(private @property:deprecated val foo: String) : <!DEPRECATED_SYMBOL_WITH_MESSAGE!>A<!>() {
override fun getFoo(text: String): String = super.<!DEPRECATED_SYMBOL_WITH_MESSAGE!>getFoo<!>(text + <!DEPRECATED_SYMBOL!>foo<!>)
}