mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
36 lines
657 B
Kotlin
Vendored
36 lines
657 B
Kotlin
Vendored
// FQNAME: Simple
|
|
|
|
// FILE: Simple.java
|
|
@interface Anno {
|
|
String[] numbers();
|
|
}
|
|
|
|
@interface AnnoValue {
|
|
String[] value();
|
|
}
|
|
|
|
@KotlinAnnotation(a = "A", b = 5)
|
|
@Anno(numbers = { "five", "six" })
|
|
@AnnoValue({ "five", "six" })
|
|
public abstract class Simple {
|
|
@Anno(numbers = "seven")
|
|
@AnnoValue("seven")
|
|
final String field = "A";
|
|
|
|
abstract void voidMethod();
|
|
|
|
static {
|
|
System.out.println("A");
|
|
}
|
|
|
|
{
|
|
System.out.println("b");
|
|
}
|
|
|
|
protected String strMethod(int param) {
|
|
return "A";
|
|
}
|
|
}
|
|
|
|
// FILE: KotlinAnnotation.kt
|
|
annotation class KotlinAnnotation(val a: String, val b: Int) |