Files
kotlin-fork/plugins/kapt3/kapt3-compiler/testData/converter/kt32596.txt
T
Nicklas Ansman Giertz dd051c1556 KAPT: Preserve the order of annotations in the stubs
Previously the annotations were included in reverse order. With this
change they are kept in the same order as in the source file.

This changes the test case for KT-23427 but that issue seems to relate
to annotation arguments that are missing, not the order of repeatable
annotations.

This fixes KT-51087
2023-01-11 22:01:22 +01:00

54 lines
855 B
Plaintext
Vendored

import kotlin.reflect.KClass;
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@kotlin.Metadata()
public abstract @interface Anno {
public abstract java.lang.Class<?> klass();
}
////////////////////
import kotlin.reflect.KClass;
@ABC()
@kotlin.Metadata()
public final class ErrorMissingAnnotation {
public ErrorMissingAnnotation() {
super();
}
}
////////////////////
import kotlin.reflect.KClass;
@ABC()
@CDE()
@kotlin.Metadata()
public final class ErrorMultipleMissingAnnotations {
public ErrorMultipleMissingAnnotations() {
super();
}
}
////////////////////
import kotlin.reflect.KClass;
@CDE()
@Anno(klass = ABC.class)
@ABC()
@kotlin.Metadata()
public final class ErrorSomeMissingAnnotations {
public ErrorSomeMissingAnnotations() {
super();
}
}