KT-18232: Kotlin code converter misses annotations
#KT-18232 Fixed
This commit is contained in:
committed by
Simon Ogorodnik
parent
4092d754c6
commit
be664e26f7
+1
-1
@@ -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?)
|
||||
Reference in New Issue
Block a user