Mapping of JavaDoc deprecated to Kotlin Deprecated + a pair of tests

This commit is contained in:
Mikhail Glukhikh
2015-08-04 14:39:53 +03:00
parent 7d02b45558
commit 45cc3c025f
17 changed files with 118 additions and 8 deletions
@@ -0,0 +1,20 @@
// !DIAGNOSTICS: -NO_VALUE_FOR_PARAMETER
// FILE: A.java
/**
* @deprecated
*/
public class A {
/**
* @deprecated
*/
public String getFoo(String text) {
return text;
}
}
// FILE: B.kt
class B(private val foo: String) : <!DEPRECATED_SYMBOL_WITH_MESSAGE!>A<!>() {
override fun getFoo(text: String): String = super.<!DEPRECATED_SYMBOL_WITH_MESSAGE!>getFoo<!>(text + foo)
}