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

153 lines
3.2 KiB
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<java.lang.Object> a();
}
////////////////////
import kotlin.reflect.KClass;
@Anno(a = ABC.class)
@kotlin.Metadata()
public final class ErrorInAnnotation {
public ErrorInAnnotation() {
super();
}
}
////////////////////
import kotlin.reflect.KClass;
@kotlin.Metadata()
public final class ErrorInConstructorParameter {
@org.jetbrains.annotations.NotNull()
private final java.lang.String a = null;
@org.jetbrains.annotations.NotNull()
private final ABC b = null;
@org.jetbrains.annotations.NotNull()
private final java.util.List<ABC> c = null;
public ErrorInConstructorParameter(@org.jetbrains.annotations.NotNull()
java.lang.String a, @org.jetbrains.annotations.NotNull()
ABC b, @org.jetbrains.annotations.NotNull()
java.util.List<? extends ABC> c) {
super();
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getA() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final ABC getB() {
return null;
}
@org.jetbrains.annotations.NotNull()
public final java.util.List<ABC> getC() {
return null;
}
}
////////////////////
import kotlin.reflect.KClass;
@kotlin.Metadata()
public final class ErrorInDeclarations {
public java.lang.String p1;
public ABC p2;
public BCD<java.lang.String> p3;
public ErrorInDeclarations() {
super();
}
@org.jetbrains.annotations.NotNull()
public final java.lang.String getP1() {
return null;
}
public final void setP1(@org.jetbrains.annotations.NotNull()
java.lang.String p0) {
}
@org.jetbrains.annotations.NotNull()
public final ABC getP2() {
return null;
}
public final void setP2(@org.jetbrains.annotations.NotNull()
ABC p0) {
}
@org.jetbrains.annotations.NotNull()
public final BCD<java.lang.String> getP3() {
return null;
}
public final void setP3(@org.jetbrains.annotations.NotNull()
BCD<java.lang.String> p0) {
}
public final void overloads(@org.jetbrains.annotations.NotNull()
java.lang.String a) {
}
public final void overloads(@org.jetbrains.annotations.NotNull()
ABC a) {
}
public final void f1(@org.jetbrains.annotations.NotNull()
java.lang.String a, @org.jetbrains.annotations.NotNull()
ABC<java.util.List<java.lang.String>> b) {
}
public final <T extends java.lang.String>void f2() {
}
public final <T extends java.lang.Object>void f3() {
}
@org.jetbrains.annotations.Nullable()
public final ABC f4() {
return null;
}
}
////////////////////
import kotlin.reflect.KClass;
@kotlin.Metadata()
public final class ErrorInSupertype implements ABC {
public ErrorInSupertype() {
super();
}
}
////////////////////
import kotlin.reflect.KClass;
@kotlin.Metadata()
public final class ErrorInSupertype2 extends ABC<java.lang.String> {
public ErrorInSupertype2() {
super();
}
}