KT-18232: Kotlin code converter misses annotations

#KT-18232 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-08-11 22:36:11 +09:00
committed by Simon Ogorodnik
parent 4092d754c6
commit be664e26f7
8 changed files with 64 additions and 14 deletions
@@ -2,5 +2,5 @@ internal annotation class A
internal annotation class B
class U(@param:A @B
class U(@param:A @field:B
var i: Int)
@@ -0,0 +1,21 @@
@interface TestAnnotation {
}
public class Test {
@TestAnnotation
private String arg;
public Test(@TestAnnotation String arg) {
this.arg = arg;
}
@TestAnnotation
public String getArg() {
return arg;
}
@TestAnnotation
public void setArg(String arg) {
this.arg = arg;
}
}
@@ -0,0 +1,6 @@
internal annotation class TestAnnotation
class Test(@param:TestAnnotation @field:TestAnnotation
@get:TestAnnotation
@set:TestAnnotation
var arg: String?)