mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
41 lines
1.1 KiB
Kotlin
Vendored
41 lines
1.1 KiB
Kotlin
Vendored
// FILE: test.kt
|
|
@file:JvmName("MultifileClass")
|
|
@file:JvmMultifileClass
|
|
<!ANNOTATION_IS_NOT_APPLICABLE_TO_MULTIFILE_CLASSES!>@file:JavaAnn<!>
|
|
<!ANNOTATION_IS_NOT_APPLICABLE_TO_MULTIFILE_CLASSES!>@file:JavaClassAnn<!>
|
|
@file:JavaSourceAnn
|
|
|
|
// FILE: JavaAnn.java
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
@Target(ElementType.TYPE)
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface JavaAnn {
|
|
}
|
|
|
|
// FILE: JavaClassAnn.java
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
@Target(ElementType.TYPE)
|
|
@Retention(RetentionPolicy.CLASS)
|
|
public @interface JavaClassAnn {
|
|
}
|
|
|
|
// FILE: JavaSourceAnn.java
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
@Target(ElementType.TYPE)
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface JavaSourceAnn {
|
|
}
|
|
|