DEPRECATED_ERROR supported

This commit is contained in:
Andrey Breslav
2015-10-08 20:04:03 +03:00
parent 34267e436e
commit 95240fc29f
8 changed files with 83 additions and 0 deletions
@@ -0,0 +1,11 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
@Deprecated("alas", level = DeprecationLevel.ERROR)
fun foo() {}
@Deprecated("alas", level = DeprecationLevel.ERROR)
class C
fun test(c: <!DEPRECATION_ERROR!>C<!>) {
<!DEPRECATION_ERROR!>foo<!>()
<!DEPRECATION_ERROR!>C<!>()
}