mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Migrate boxAgainstJava tests to multi-file framework
This commit is contained in:
@@ -1,3 +1,31 @@
|
||||
// FILE: JavaAnn.java
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@interface JavaAnn {
|
||||
String value() default "default";
|
||||
}
|
||||
|
||||
// FILE: JavaAnn2.java
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@interface JavaAnn2 {
|
||||
int a() default 1;
|
||||
byte b() default 1;
|
||||
short c() default 1;
|
||||
double d() default 1;
|
||||
float e() default 1;
|
||||
long j() default 1;
|
||||
String f() default "default";
|
||||
}
|
||||
|
||||
// FILE: 1.kt
|
||||
|
||||
@JavaAnn class MyClass
|
||||
@JavaAnn2 class MyClass2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user