Files
kotlin-fork/plugins/kapt3/kapt3-compiler/testData/converter/annotationWithFqNames.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

74 lines
1.0 KiB
Plaintext
Vendored

package lib;
public @interface Anno {
Class<?>[] impls() default {};
}
////////////////////
package lib.impl;
public class Impl {
}
////////////////////
package test;
import lib.Anno;
import lib.impl.Impl;
@lib.Anno(impls = {lib.impl.Impl.class, ABC.class})
@kotlin.Metadata()
public final class Bar {
public Bar() {
super();
}
}
////////////////////
package test;
import lib.Anno;
import lib.impl.Impl;
@lib.Anno(impls = {lib.impl.Impl.class})
@kotlin.Metadata()
public final class Boo {
public Boo() {
super();
}
}
////////////////////
package test;
import lib.Anno;
import lib.impl.Impl;
@lib.Anno(impls = {lib.impl.Impl.class})
@kotlin.Metadata()
public final class Foo {
public Foo() {
super();
}
}
////////////////////
package test;
import lib.Anno;
import lib.impl.Impl;
@kotlin.Metadata()
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE", "ANNOTATION_ARGUMENT_MUST_BE_CONST", "NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION"})
public final class TestKt {
}