Kapt: Add runtime library, move all modules inside the 'kapt3' directory
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
enum class E {
|
||||
X {
|
||||
override fun a() {}
|
||||
},
|
||||
Y {
|
||||
override fun a() {}
|
||||
};
|
||||
|
||||
abstract fun a()
|
||||
|
||||
fun b() {}
|
||||
|
||||
object Obj
|
||||
class NestedClass
|
||||
}
|
||||
|
||||
enum class E2 {
|
||||
X("") {
|
||||
override fun a() {}
|
||||
},
|
||||
Y(5) {
|
||||
override fun a() {}
|
||||
};
|
||||
|
||||
constructor(n: Int) {}
|
||||
constructor(s: String) {}
|
||||
|
||||
abstract fun a()
|
||||
}
|
||||
|
||||
enum class E3(val a: String) {
|
||||
X(""), Y("")
|
||||
}
|
||||
|
||||
enum class E4(val a: String, val b: Int, val c: Long, val d: Boolean) {
|
||||
X("", 4, 2L, true)
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
@kotlin.Metadata()
|
||||
public enum E {
|
||||
/*public static final*/ X /* = new @kotlin.Metadata() X(){
|
||||
|
||||
@java.lang.Override()
|
||||
public void a() {
|
||||
}
|
||||
|
||||
X() {
|
||||
super();
|
||||
}
|
||||
} */,
|
||||
/*public static final*/ Y /* = new @kotlin.Metadata() Y(){
|
||||
|
||||
@java.lang.Override()
|
||||
public void a() {
|
||||
}
|
||||
|
||||
Y() {
|
||||
super();
|
||||
}
|
||||
} */;
|
||||
|
||||
public abstract void a();
|
||||
|
||||
public final void b() {
|
||||
}
|
||||
|
||||
E() {
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class Obj {
|
||||
public static final E.Obj INSTANCE = null;
|
||||
|
||||
private Obj() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class NestedClass {
|
||||
|
||||
public NestedClass() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public enum E2 {
|
||||
/*public static final*/ X /* = new @kotlin.Metadata() X(0){
|
||||
|
||||
@java.lang.Override()
|
||||
public void a() {
|
||||
}
|
||||
|
||||
X() {
|
||||
super(0);
|
||||
}
|
||||
} */,
|
||||
/*public static final*/ Y /* = new @kotlin.Metadata() Y(0){
|
||||
|
||||
@java.lang.Override()
|
||||
public void a() {
|
||||
}
|
||||
|
||||
Y() {
|
||||
super(0);
|
||||
}
|
||||
} */;
|
||||
|
||||
public abstract void a();
|
||||
|
||||
E2(int n) {
|
||||
}
|
||||
|
||||
E2(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String s) {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public enum E3 {
|
||||
/*public static final*/ X /* = new X(null) */,
|
||||
/*public static final*/ Y /* = new Y(null) */;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String a = null;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getA() {
|
||||
return null;
|
||||
}
|
||||
|
||||
E3(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String a) {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public enum E4 {
|
||||
/*public static final*/ X /* = new X(null, 0, 0L, false) */;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String a = null;
|
||||
private final int b = 0;
|
||||
private final long c = 0L;
|
||||
private final boolean d = false;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getA() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final int getB() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final long getC() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public final boolean getD() {
|
||||
return false;
|
||||
}
|
||||
|
||||
E4(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String a, int b, long c, boolean d) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
abstract class Base {
|
||||
protected abstract fun doJob(job: String, delay: Int)
|
||||
protected abstract fun <T : CharSequence> doJobGeneric(job: T, delay: Int)
|
||||
}
|
||||
|
||||
class Impl : Base() {
|
||||
override fun doJob(job: String, delay: Int) {}
|
||||
override fun <T : CharSequence> doJobGeneric(job: T, delay: Int) {}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
@kotlin.Metadata()
|
||||
public abstract class Base {
|
||||
|
||||
protected abstract void doJob(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String job, int delay);
|
||||
|
||||
protected abstract <T extends java.lang.CharSequence>void doJobGeneric(@org.jetbrains.annotations.NotNull()
|
||||
T job, int delay);
|
||||
|
||||
public Base() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Impl extends Base {
|
||||
|
||||
@java.lang.Override()
|
||||
protected void doJob(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String job, int delay) {
|
||||
}
|
||||
|
||||
@java.lang.Override()
|
||||
protected <T extends java.lang.CharSequence>void doJobGeneric(@org.jetbrains.annotations.NotNull()
|
||||
T job, int delay) {
|
||||
}
|
||||
|
||||
public Impl() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
annotation class Anno1
|
||||
enum class Colors { WHITE, BLACK }
|
||||
annotation class Anno2(
|
||||
val i: Int = 5,
|
||||
val s: String = "ABC",
|
||||
val ii: IntArray = intArrayOf(1, 2, 3),
|
||||
val ss: Array<String> = arrayOf("A", "B"),
|
||||
val a: Anno1,
|
||||
val color: Colors = Colors.BLACK,
|
||||
val colors: Array<Colors> = arrayOf(Colors.BLACK, Colors.WHITE),
|
||||
val clazz: kotlin.reflect.KClass<*>,
|
||||
val classes: Array<kotlin.reflect.KClass<*>>
|
||||
)
|
||||
annotation class Anno3(val value: String)
|
||||
|
||||
@Anno1
|
||||
@Anno2(a = Anno1(), clazz = TestAnno::class, classes = arrayOf(TestAnno::class, Anno1::class))
|
||||
@Anno3(value = "value")
|
||||
class TestAnno
|
||||
|
||||
@Anno3("value")
|
||||
@Anno2(i = 6, s = "BCD", ii = intArrayOf(4, 5, 6), ss = arrayOf("Z", "X"),
|
||||
a = Anno1(), color = Colors.WHITE, colors = arrayOf(Colors.WHITE),
|
||||
clazz = TestAnno::class, classes = arrayOf(TestAnno::class, Anno1::class))
|
||||
class TestAnno2 {
|
||||
@Anno1
|
||||
fun a(@Anno3("param-pam-pam") param: String) {}
|
||||
|
||||
@get:Anno3("getter") @set:Anno3("setter") @property:Anno3("property") @field:Anno3("field") @setparam:Anno3("setparam")
|
||||
var b: String = "property initializer"
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Anno1 {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Anno2 {
|
||||
|
||||
public abstract int i() default 5;
|
||||
|
||||
public abstract java.lang.String s() default "ABC";
|
||||
|
||||
public abstract int[] ii() default {1, 2, 3};
|
||||
|
||||
public abstract java.lang.String[] ss() default {"A", "B"};
|
||||
|
||||
public abstract Anno1 a();
|
||||
|
||||
public abstract Colors color() default Colors.BLACK;
|
||||
|
||||
public abstract Colors[] colors() default {Colors.BLACK, Colors.WHITE};
|
||||
|
||||
public abstract java.lang.Class<?> clazz();
|
||||
|
||||
public abstract java.lang.Class<?>[] classes();
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Anno3 {
|
||||
|
||||
public abstract java.lang.String value();
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public enum Colors {
|
||||
/*public static final*/ WHITE /* = new WHITE() */,
|
||||
/*public static final*/ BLACK /* = new BLACK() */;
|
||||
|
||||
Colors() {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
@Anno3(value = "value")
|
||||
@Anno2(a = @Anno1(), clazz = TestAnno.class, classes = {TestAnno.class, Anno1.class})
|
||||
@Anno1()
|
||||
public final class TestAnno {
|
||||
|
||||
public TestAnno() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
@Anno2(i = 6, s = "BCD", ii = {4, 5, 6}, ss = {"Z", "X"}, a = @Anno1(), color = Colors.WHITE, colors = {Colors.WHITE}, clazz = TestAnno.class, classes = {TestAnno.class, Anno1.class})
|
||||
@Anno3(value = "value")
|
||||
public final class TestAnno2 {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@Anno3(value = "field")
|
||||
private java.lang.String b;
|
||||
|
||||
@Anno1()
|
||||
public final void a(@org.jetbrains.annotations.NotNull()
|
||||
@Anno3(value = "param-pam-pam")
|
||||
java.lang.String param) {
|
||||
}
|
||||
|
||||
@Anno3(value = "property")
|
||||
public static void b$annotations() {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@Anno3(value = "getter")
|
||||
public final java.lang.String getB() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Anno3(value = "setter")
|
||||
public final void setB(@org.jetbrains.annotations.NotNull()
|
||||
@Anno3(value = "setparam")
|
||||
java.lang.String p0) {
|
||||
}
|
||||
|
||||
public TestAnno2() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
@file:kotlin.jvm.JvmName("AnnotationsTest")
|
||||
package test
|
||||
|
||||
@Anno("anno-class")
|
||||
annotation class Anno @Anno("anno-constructor") constructor(
|
||||
@Anno("anno-value") val value: String
|
||||
)
|
||||
|
||||
@Anno("clazz")
|
||||
abstract class Test @Anno("test-constructor") protected constructor(@param:Anno("v-param")
|
||||
@setparam:Anno("v-setparam")
|
||||
@property:Anno("v-property")
|
||||
@get:Anno("v-get")
|
||||
@set:Anno("v-set") var v: String) {
|
||||
@Anno("abstract-method")
|
||||
abstract fun abstractMethod(): String
|
||||
|
||||
@Anno("abstract-val")
|
||||
abstract val abstractVal: String
|
||||
}
|
||||
|
||||
@Anno("top-level-fun")
|
||||
fun @receiver:Anno("top-level-fun-receiver") String.topLevelFun() {}
|
||||
|
||||
@Anno("top-level-val")
|
||||
val @receiver:Anno("top-level-val-receiver") Int.topLevelVal: String
|
||||
get() = ""
|
||||
|
||||
@Anno("enum")
|
||||
enum class Enum @Anno("enum-constructor") constructor(@Anno("x") val x: Int) {
|
||||
@Anno("white") WHITE(1), @Anno("black") BLACK(2)
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@Anno(value = "anno-class")
|
||||
public abstract @interface Anno {
|
||||
|
||||
public abstract java.lang.String value();
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class AnnotationsTest {
|
||||
|
||||
public AnnotationsTest() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Anno(value = "top-level-fun")
|
||||
public static final void topLevelFun(@org.jetbrains.annotations.NotNull()
|
||||
@Anno(value = "top-level-fun-receiver")
|
||||
java.lang.String $receiver) {
|
||||
}
|
||||
|
||||
@Anno(value = "top-level-val")
|
||||
public static void topLevelVal$annotations(int p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getTopLevelVal(@Anno(value = "top-level-val-receiver")
|
||||
int $receiver) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@Anno(value = "enum")
|
||||
public enum Enum {
|
||||
/*public static final*/ WHITE /* = new WHITE(0) */,
|
||||
/*public static final*/ BLACK /* = new BLACK(0) */;
|
||||
private final int x = 0;
|
||||
|
||||
public final int getX() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Anno(value = "enum-constructor")
|
||||
Enum(@Anno(value = "x")
|
||||
int x) {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@Anno(value = "clazz")
|
||||
public abstract class Test {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private java.lang.String v;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@Anno(value = "abstract-method")
|
||||
public abstract java.lang.String abstractMethod();
|
||||
|
||||
@Anno(value = "abstract-val")
|
||||
public static void abstractVal$annotations() {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.lang.String getAbstractVal();
|
||||
|
||||
@Anno(value = "v-property")
|
||||
public static void v$annotations() {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@Anno(value = "v-get")
|
||||
public final java.lang.String getV() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Anno(value = "v-set")
|
||||
public final void setV(@org.jetbrains.annotations.NotNull()
|
||||
@Anno(value = "v-setparam")
|
||||
java.lang.String p0) {
|
||||
}
|
||||
|
||||
@Anno(value = "test-constructor")
|
||||
protected Test(@org.jetbrains.annotations.NotNull()
|
||||
@Anno(value = "v-param")
|
||||
java.lang.String v) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
data class User(val firstName: String, val secondName: String, val age: Int) {
|
||||
fun procedure() {}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
@kotlin.Metadata()
|
||||
public final class User {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String firstName = null;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String secondName = null;
|
||||
private final int age = 0;
|
||||
|
||||
public final void procedure() {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getFirstName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getSecondName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final int getAge() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public User(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String firstName, @org.jetbrains.annotations.NotNull()
|
||||
java.lang.String secondName, int age) {
|
||||
super();
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String component1() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String component2() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final int component3() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final User copy(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String firstName, @org.jetbrains.annotations.NotNull()
|
||||
java.lang.String secondName, int age) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@java.lang.Override()
|
||||
public java.lang.String toString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@java.lang.Override()
|
||||
public int hashCode() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@java.lang.Override()
|
||||
public boolean equals(java.lang.Object p0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
interface IntfWithoutDefaultImpls
|
||||
|
||||
interface IntfWithDefaultImpls {
|
||||
fun a() {}
|
||||
}
|
||||
|
||||
interface Intf {
|
||||
companion object {
|
||||
val BLACK = 1
|
||||
const val WHITE = 2
|
||||
}
|
||||
|
||||
val color: Int
|
||||
get() = BLACK
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
@kotlin.Metadata()
|
||||
public abstract interface Intf {
|
||||
public static final Intf.Companion Companion = null;
|
||||
public static final int WHITE = 2;
|
||||
|
||||
public abstract int getColor();
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class DefaultImpls {
|
||||
|
||||
public DefaultImpls() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static int getColor(Intf $this) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class Companion {
|
||||
private static final int BLACK = 1;
|
||||
public static final int WHITE = 2;
|
||||
|
||||
public final int getBLACK() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface IntfWithDefaultImpls {
|
||||
|
||||
public abstract void a();
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class DefaultImpls {
|
||||
|
||||
public DefaultImpls() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static void a(IntfWithDefaultImpls $this) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface IntfWithoutDefaultImpls {
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
enum class Enum1 {
|
||||
BLACK, WHITE
|
||||
}
|
||||
|
||||
annotation class Anno1(val value: String)
|
||||
|
||||
enum class Enum2(@Anno1("first") val col: String, @Anno1("second") val col2: Int) {
|
||||
RED("red", 1), WHITE("white", 2);
|
||||
fun color() = col
|
||||
|
||||
private fun privateEnumFun() {}
|
||||
public fun publicEnumFun() {}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Anno1 {
|
||||
|
||||
public abstract java.lang.String value();
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public enum Enum1 {
|
||||
/*public static final*/ BLACK /* = new BLACK() */,
|
||||
/*public static final*/ WHITE /* = new WHITE() */;
|
||||
|
||||
Enum1() {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public enum Enum2 {
|
||||
/*public static final*/ RED /* = new RED(null, 0) */,
|
||||
/*public static final*/ WHITE /* = new WHITE(null, 0) */;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String col = null;
|
||||
private final int col2 = 0;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String color() {
|
||||
return null;
|
||||
}
|
||||
|
||||
private final void privateEnumFun() {
|
||||
}
|
||||
|
||||
public final void publicEnumFun() {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getCol() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final int getCol2() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Enum2(@org.jetbrains.annotations.NotNull()
|
||||
@Anno1(value = "first")
|
||||
java.lang.String col, @Anno1(value = "second")
|
||||
int col2) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
@file:JvmName("FacadeName")
|
||||
package a.b.c
|
||||
|
||||
fun foo() {}
|
||||
|
||||
val bar = 3
|
||||
@@ -0,0 +1,17 @@
|
||||
package a.b.c;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class FacadeName {
|
||||
|
||||
public FacadeName() {
|
||||
super();
|
||||
}
|
||||
private static final int bar = 3;
|
||||
|
||||
public static final void foo() {
|
||||
}
|
||||
|
||||
public static final int getBar() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class FunctionsTest {
|
||||
fun f() = String::length
|
||||
fun f2() = fun (a: Int, b: Int) = a > b
|
||||
fun f3() = run {}
|
||||
fun f4() = run { 3 }
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
@kotlin.Metadata()
|
||||
public final class FunctionsTest {
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final kotlin.reflect.KProperty1<java.lang.String, java.lang.Integer> f() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final kotlin.jvm.functions.Function2<java.lang.Integer, java.lang.Integer, java.lang.Boolean> f2() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void f3() {
|
||||
}
|
||||
|
||||
public final int f4() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public FunctionsTest() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
class GenericRawSignatures {
|
||||
fun <T> genericFun(): T? = null
|
||||
fun nonGenericFun(): String? = null
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
@kotlin.Metadata()
|
||||
public final class GenericRawSignatures {
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final <T extends java.lang.Object>T genericFun() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String nonGenericFun() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public GenericRawSignatures() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import java.io.Serializable
|
||||
import java.util.*
|
||||
|
||||
interface Intf<I1, I2 : Serializable>
|
||||
interface Intf2<out T : List<String>, M : T>
|
||||
interface OtherIntf<O : CharSequence>
|
||||
open class BaseClass<B : Any>
|
||||
class MyClass<M1, M2> : Intf<Any, java.util.Date>, OtherIntf<String>, BaseClass<RuntimeException>() {
|
||||
val fld: List<Map<String, M1>>? = null
|
||||
}
|
||||
|
||||
interface ABC {
|
||||
fun <T : CharSequence> abc(item: T, items: List<T>, vararg otherItems: T): List<T>
|
||||
fun <X> bcd(vararg a: Char): Int
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
@kotlin.Metadata()
|
||||
public abstract interface ABC {
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract <T extends java.lang.CharSequence>java.util.List<T> abc(@org.jetbrains.annotations.NotNull()
|
||||
T item, @org.jetbrains.annotations.NotNull()
|
||||
java.util.List<? extends T> items, @org.jetbrains.annotations.NotNull()
|
||||
T... otherItems);
|
||||
|
||||
public abstract <X extends java.lang.Object>int bcd(@org.jetbrains.annotations.NotNull()
|
||||
char... a);
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public class BaseClass<B extends java.lang.Object> {
|
||||
|
||||
public BaseClass() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface Intf<I1 extends java.lang.Object, I2 extends java.io.Serializable> {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface Intf2<T extends java.util.List<? extends java.lang.String>, M extends T> {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class MyClass<M1 extends java.lang.Object, M2 extends java.lang.Object> extends BaseClass<java.lang.RuntimeException> implements Intf<java.lang.Object, java.util.Date>, OtherIntf<java.lang.String> {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final java.util.List<java.util.Map<java.lang.String, M1>> fld = null;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.List<java.util.Map<java.lang.String, M1>> getFld() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public MyClass() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface OtherIntf<O extends java.lang.CharSequence> {
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// CORRECT_ERROR_TYPES
|
||||
|
||||
import java.util.zip.*
|
||||
import java.util.Date
|
||||
import java.util.concurrent.TimeUnit
|
||||
import java.util.concurrent.TimeUnit.MICROSECONDS
|
||||
import java.util.concurrent.TimeUnit.*
|
||||
import java.util.Calendar.*
|
||||
|
||||
fun test(): Any? {
|
||||
return null
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import java.util.zip.*;
|
||||
import java.util.Date;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.TimeUnit.MICROSECONDS;
|
||||
import java.util.concurrent.TimeUnit.*;
|
||||
import java.util.Calendar.*;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class ImportsForErrorTypesKt {
|
||||
|
||||
public ImportsForErrorTypesKt() {
|
||||
super();
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.Object test() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
interface Context
|
||||
|
||||
enum class Result {
|
||||
SUCCESS, ERROR
|
||||
}
|
||||
|
||||
abstract class BaseClass(context: Context, num: Int, bool: Boolean) {
|
||||
abstract fun doJob(): Result
|
||||
}
|
||||
|
||||
class Inheritor(context: Context) : BaseClass(context, 5, true) {
|
||||
override fun doJob() = Result.SUCCESS
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
@kotlin.Metadata()
|
||||
public abstract class BaseClass {
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract Result doJob();
|
||||
|
||||
public BaseClass(@org.jetbrains.annotations.NotNull()
|
||||
Context context, int num, boolean bool) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface Context {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Inheritor extends BaseClass {
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@java.lang.Override()
|
||||
public Result doJob() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Inheritor(@org.jetbrains.annotations.NotNull()
|
||||
Context context) {
|
||||
super(null, 0, false);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public enum Result {
|
||||
/*public static final*/ SUCCESS /* = new SUCCESS() */,
|
||||
/*public static final*/ ERROR /* = new ERROR() */;
|
||||
|
||||
Result() {
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
class Test {
|
||||
private var a = FilterValueDelegate<Float>()
|
||||
private inner class FilterValueDelegate<T>
|
||||
}
|
||||
|
||||
class Test2 {
|
||||
inner class FilterValueDelegate<T> {
|
||||
private var a = Filter2<String>()
|
||||
inner class Filter2<X>
|
||||
}
|
||||
}
|
||||
|
||||
class Test3 {
|
||||
private var a = FilterValueDelegate<Float>()
|
||||
private class FilterValueDelegate<T>
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
@kotlin.Metadata()
|
||||
public final class Test {
|
||||
private Test.FilterValueDelegate<java.lang.Float> a;
|
||||
|
||||
public Test() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
final class FilterValueDelegate<T extends java.lang.Object> {
|
||||
|
||||
public FilterValueDelegate() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Test2 {
|
||||
|
||||
public Test2() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class FilterValueDelegate<T extends java.lang.Object> {
|
||||
private Test2.FilterValueDelegate<T>.Filter2<java.lang.String> a;
|
||||
|
||||
public FilterValueDelegate() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Filter2<X extends java.lang.Object> {
|
||||
|
||||
public Filter2() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Test3 {
|
||||
private Test3.FilterValueDelegate<java.lang.Float> a;
|
||||
|
||||
public Test3() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
static final class FilterValueDelegate<T extends java.lang.Object> {
|
||||
|
||||
public FilterValueDelegate() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// EXPECTED_ERROR 'WHI-TE' is an invalid Java enum value name
|
||||
// EXPECTED_ERROR an enum annotation value must be an enum constant
|
||||
// EXPECTED_ERROR cannot find symbol
|
||||
|
||||
enum class Color {
|
||||
BLACK, `WHI-TE`
|
||||
}
|
||||
|
||||
@Anno(Color.`WHI-TE`)
|
||||
annotation class Anno(val color: Color)
|
||||
@@ -0,0 +1,18 @@
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@Anno(color = Color.InvalidFieldName)
|
||||
public abstract @interface Anno {
|
||||
|
||||
public abstract Color color();
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public enum Color {
|
||||
/*public static final*/ BLACK /* = new BLACK() */;
|
||||
|
||||
Color() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
class default {
|
||||
lateinit val extends: String
|
||||
fun implements(instanceof: Int) {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
// FILE: a.kt
|
||||
package a.b.c
|
||||
class A
|
||||
|
||||
// FILE: b.kt
|
||||
package a.`do`.c
|
||||
class B
|
||||
|
||||
// FILE: c.kt
|
||||
package case.a
|
||||
class C
|
||||
|
||||
// FILE: d.kt
|
||||
package a.b.c.d.e.`for`
|
||||
class D
|
||||
|
||||
// FILE: e.kt
|
||||
package a.b.`typealias`.c
|
||||
class E
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package a.b.c;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class A {
|
||||
|
||||
public A() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package a.b.typealias.c;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class E {
|
||||
|
||||
public E() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
class State @JvmOverloads constructor(
|
||||
val someInt: Int,
|
||||
val someLong: Long,
|
||||
val someString: String = ""
|
||||
)
|
||||
|
||||
class State2 @JvmOverloads constructor(
|
||||
@JvmField val someInt: Int,
|
||||
@JvmField val someLong: Long = 2,
|
||||
@JvmField val someString: String = ""
|
||||
) {
|
||||
@JvmOverloads
|
||||
fun test(someInt: Int, someLong: Long = 1, someString: String = "A"): Int = 5
|
||||
|
||||
fun someMethod(str: String) {}
|
||||
fun methodWithoutArgs() {}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
@kotlin.Metadata()
|
||||
public final class State {
|
||||
private final int someInt = 0;
|
||||
private final long someLong = 0L;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String someString = null;
|
||||
|
||||
public final int getSomeInt() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final long getSomeLong() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getSomeString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public State(int someInt, long someLong, @org.jetbrains.annotations.NotNull()
|
||||
java.lang.String someString) {
|
||||
super();
|
||||
}
|
||||
|
||||
public State(int someInt, long someLong) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class State2 {
|
||||
public final int someInt = 0;
|
||||
public final long someLong = 0L;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String someString = null;
|
||||
|
||||
public final int test(int someInt, long someLong, @org.jetbrains.annotations.NotNull()
|
||||
java.lang.String someString) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final int test(int someInt, long someLong) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final int test(int someInt) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final void someMethod(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String str) {
|
||||
}
|
||||
|
||||
public final void methodWithoutArgs() {
|
||||
}
|
||||
|
||||
public State2(int someInt, long someLong, @org.jetbrains.annotations.NotNull()
|
||||
java.lang.String someString) {
|
||||
super();
|
||||
}
|
||||
|
||||
public State2(int someInt, long someLong) {
|
||||
super();
|
||||
}
|
||||
|
||||
public State2(int someInt) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
class JvmStaticTest {
|
||||
companion object {
|
||||
@JvmStatic
|
||||
val one = 1
|
||||
|
||||
val two = 2
|
||||
|
||||
const val c: Char = 'C'
|
||||
}
|
||||
|
||||
val three: Byte = 3.toByte()
|
||||
val d: Char = 'D'
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
@kotlin.Metadata()
|
||||
public final class JvmStaticTest {
|
||||
private final byte three = (byte)3;
|
||||
private final char d = 'D';
|
||||
private static final int one = 1;
|
||||
private static final int two = 2;
|
||||
public static final char c = 'C';
|
||||
public static final JvmStaticTest.Companion Companion = null;
|
||||
|
||||
public final byte getThree() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final char getD() {
|
||||
return '\u0000';
|
||||
}
|
||||
|
||||
public JvmStaticTest() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static final int getOne() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class Companion {
|
||||
|
||||
public static void one$annotations() {
|
||||
}
|
||||
|
||||
public final int getOne() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final int getTwo() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
companion object A {
|
||||
@JvmStatic
|
||||
val test: String = ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
@kotlin.Metadata()
|
||||
public final class Test {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static final java.lang.String test = "";
|
||||
public static final Test.A A = null;
|
||||
|
||||
public Test() {
|
||||
super();
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getTest() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class A {
|
||||
|
||||
public static void test$annotations() {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getTest() {
|
||||
return null;
|
||||
}
|
||||
|
||||
private A() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun crashMe(values: List<String>): String {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
fun crashMe(values: List<CharSequence>): CharSequence {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
@kotlin.Metadata()
|
||||
public final class Kt14996Kt {
|
||||
|
||||
public Kt14996Kt() {
|
||||
super();
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String crashMe(@org.jetbrains.annotations.NotNull()
|
||||
java.util.List<java.lang.String> values) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.CharSequence crashMe(@org.jetbrains.annotations.NotNull()
|
||||
java.util.List<? extends java.lang.CharSequence> values) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
@file:Suppress("AMBIGUOUS_ANONYMOUS_TYPE_INFERRED")
|
||||
|
||||
open class CrashMe {
|
||||
private val notReally = object : Runnable {
|
||||
override fun run() {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun a() = object : Runnable {
|
||||
override fun run() {}
|
||||
}
|
||||
|
||||
fun b() = object : java.io.Serializable, Runnable {
|
||||
override fun run() {}
|
||||
}
|
||||
|
||||
fun c() = object : CrashMe(), Runnable {
|
||||
override fun run() {}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
@kotlin.Metadata()
|
||||
public class CrashMe {
|
||||
private final java.lang.Runnable notReally = null;
|
||||
|
||||
public CrashMe() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Suppress(names = {"AMBIGUOUS_ANONYMOUS_TYPE_INFERRED"})
|
||||
@kotlin.Metadata()
|
||||
public final class Kt14997Kt {
|
||||
|
||||
public Kt14997Kt() {
|
||||
super();
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.Runnable a() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.Runnable b() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final CrashMe c() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
class Outer {
|
||||
private inner class Inner(val foo: String, val bar: String)
|
||||
private class Nested(val foo: String, val bar: String)
|
||||
|
||||
fun nonAbstract(s: String, i: Int) {
|
||||
|
||||
}
|
||||
|
||||
abstract fun abstract(s: String, i: Int)
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
@kotlin.Metadata()
|
||||
public final class Outer {
|
||||
|
||||
public final void nonAbstract(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String s, int i) {
|
||||
}
|
||||
|
||||
public Outer() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
final class Inner {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String foo = null;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String bar = null;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getFoo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getBar() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Inner(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String foo, @org.jetbrains.annotations.NotNull()
|
||||
java.lang.String bar) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
static final class Nested {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String foo = null;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String bar = null;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getFoo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getBar() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Nested(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String foo, @org.jetbrains.annotations.NotNull()
|
||||
java.lang.String bar) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
interface MyInterface {
|
||||
fun someFun()
|
||||
private class MyDefaultInferface()
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
@kotlin.Metadata()
|
||||
public abstract interface MyInterface {
|
||||
|
||||
public abstract void someFun();
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class MyDefaultInferface {
|
||||
|
||||
public MyDefaultInferface() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
internal class MutableEntry<K, V>(
|
||||
private val internal: MutableMap<K, V>,
|
||||
override val key: K, value: V
|
||||
): MutableMap.MutableEntry<K, V>
|
||||
@@ -0,0 +1,17 @@
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class MutableEntry<K extends java.lang.Object, V extends java.lang.Object> implements java.util.Map.Entry<K, V>, kotlin.jvm.internal.markers.KMutableMap.Entry {
|
||||
private final java.util.Map<K, V> internal = null;
|
||||
private final K key = null;
|
||||
|
||||
@java.lang.Override()
|
||||
public K getKey() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public MutableEntry(@org.jetbrains.annotations.NotNull()
|
||||
java.util.Map<K, V> internal, K key, V value) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import java.util.Date
|
||||
|
||||
fun Date(double: Double): Date = Date(double.times(1000).toLong())
|
||||
@@ -0,0 +1,12 @@
|
||||
@kotlin.Metadata()
|
||||
public final class Kt18377Kt {
|
||||
|
||||
public Kt18377Kt() {
|
||||
super();
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.util.Date Date(double p0_1484504552) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test1() = (0..10).map { n ->
|
||||
object {
|
||||
override fun hashCode() = n
|
||||
}
|
||||
}
|
||||
|
||||
fun test2() = (0..10).map { n ->
|
||||
object : Runnable {
|
||||
override fun run() {}
|
||||
}
|
||||
}
|
||||
|
||||
abstract class Foo
|
||||
|
||||
fun test3() = (0..10).map { n ->
|
||||
object : Foo() {}
|
||||
}
|
||||
|
||||
fun test4() = (0..10).map { n ->
|
||||
object : Foo(), Runnable {
|
||||
override fun run() {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
@kotlin.Metadata()
|
||||
public abstract class Foo {
|
||||
|
||||
public Foo() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Kt18682Kt {
|
||||
|
||||
public Kt18682Kt() {
|
||||
super();
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.util.List<java.lang.Object> test1() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.util.List<java.lang.Runnable> test2() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.util.List<Foo> test3() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.util.List<Foo> test4() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
//FILE: lib/R.java
|
||||
package lib;
|
||||
|
||||
public class R {
|
||||
public static class id {
|
||||
public final static int textView = 100;
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: app/R.java
|
||||
package app;
|
||||
|
||||
public class R {
|
||||
public static class layout {
|
||||
public final static int mainActivity = 100;
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: app/B.java
|
||||
package app;
|
||||
|
||||
public class B {
|
||||
public static class id {
|
||||
public final static int textView = 200;
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: test.kt
|
||||
package app
|
||||
|
||||
import lib.R as LibR
|
||||
import lib.R.id.textView
|
||||
|
||||
annotation class Bind(val id: Int)
|
||||
|
||||
class MyActivity {
|
||||
@Bind(LibR.id.textView)
|
||||
fun foo() {}
|
||||
|
||||
@Bind(lib.R.id.textView)
|
||||
fun foo2() {}
|
||||
|
||||
@Bind(app.R.layout.mainActivity)
|
||||
fun foo3() {}
|
||||
|
||||
@Bind(R.layout.mainActivity)
|
||||
fun foo4() {}
|
||||
|
||||
@Bind(B.id.textView)
|
||||
fun notResource() {}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package app;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Bind {
|
||||
|
||||
public abstract int id();
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package app;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class MyActivity {
|
||||
|
||||
@Bind(id = lib.R.id.textView)
|
||||
public final void foo() {
|
||||
}
|
||||
|
||||
@Bind(id = lib.R.id.textView)
|
||||
public final void foo2() {
|
||||
}
|
||||
|
||||
@Bind(id = app.R.layout.mainActivity)
|
||||
public final void foo3() {
|
||||
}
|
||||
|
||||
@Bind(id = app.R.layout.mainActivity)
|
||||
public final void foo4() {
|
||||
}
|
||||
|
||||
@Bind(id = 200)
|
||||
public final void notResource() {
|
||||
}
|
||||
|
||||
public MyActivity() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
class Test<T : CharSequence, N : Number> {
|
||||
private val x = object : ListUpdateCallback {
|
||||
override fun onInserted(position: Int, count: Int) {}
|
||||
}
|
||||
}
|
||||
|
||||
interface ListUpdateCallback {
|
||||
fun onInserted(position: Int, count: Int)
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface ListUpdateCallback {
|
||||
|
||||
public abstract void onInserted(int position, int count);
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Test<T extends java.lang.CharSequence, N extends java.lang.Number> {
|
||||
private final test.ListUpdateCallback x = null;
|
||||
|
||||
public Test() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
class Test<T : CharSequence, N : Number> {
|
||||
private val x = object : TypedListUpdateCallback<String, Long> {
|
||||
override fun onInserted(position: Long, count: Long, item: String) {}
|
||||
}
|
||||
}
|
||||
|
||||
interface TypedListUpdateCallback<T : Any, C : Number> {
|
||||
fun onInserted(position: C, count: C, item: T)
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Test<T extends java.lang.CharSequence, N extends java.lang.Number> {
|
||||
private final test.TypedListUpdateCallback<java.lang.String, java.lang.Long> x = null;
|
||||
|
||||
public Test() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface TypedListUpdateCallback<T extends java.lang.Object, C extends java.lang.Number> {
|
||||
|
||||
public abstract void onInserted(@org.jetbrains.annotations.NotNull()
|
||||
C position, @org.jetbrains.annotations.NotNull()
|
||||
C count, @org.jetbrains.annotations.NotNull()
|
||||
T item);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
interface EntryHolder {
|
||||
fun entry(p: Map.Entry<CharSequence, Map.Entry<String, Int>>): Map.Entry<String, Any>
|
||||
val entryProperty: Map.Entry<String, Any>
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
@kotlin.Metadata()
|
||||
public abstract interface EntryHolder {
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.util.Map.Entry<java.lang.String, java.lang.Object> entry(@org.jetbrains.annotations.NotNull()
|
||||
java.util.Map.Entry<? extends java.lang.CharSequence, ? extends java.util.Map.Entry<java.lang.String, java.lang.Integer>> p);
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.util.Map.Entry<java.lang.String, java.lang.Object> getEntryProperty();
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
interface Intf {
|
||||
fun foo(abc: String)
|
||||
|
||||
fun bar(bcd: Int): String {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
abstract class Cls {
|
||||
abstract fun foo(abc: String)
|
||||
|
||||
fun bar(bcd: Int): String {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
@kotlin.Metadata()
|
||||
public abstract class Cls {
|
||||
|
||||
public abstract void foo(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String abc);
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String bar(int bcd) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Cls() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface Intf {
|
||||
|
||||
public abstract void foo(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String abc);
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.lang.String bar(int bcd);
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class DefaultImpls {
|
||||
|
||||
public DefaultImpls() {
|
||||
super();
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static java.lang.String bar(Intf $this, int bcd) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class CrashMe {
|
||||
val resources = 1
|
||||
|
||||
fun getResources(): String {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
@kotlin.Metadata()
|
||||
public final class CrashMe {
|
||||
private final int resources = 1;
|
||||
|
||||
public final int getResources() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getResources() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public CrashMe() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package modifiers
|
||||
|
||||
public class PublicClass public constructor()
|
||||
|
||||
public open class PublicClassProtectedConstructor protected constructor() {
|
||||
protected interface ProtectedInterface
|
||||
private interface PrivateInterface
|
||||
}
|
||||
|
||||
public abstract class PublicClassPrivateConstructor private constructor()
|
||||
internal class InternalClass
|
||||
private class PrivateClass
|
||||
|
||||
public interface PublicInterface
|
||||
internal interface InternalInterface
|
||||
private interface PrivateInterface
|
||||
|
||||
sealed class SealedClass {
|
||||
class One : SealedClass()
|
||||
open class Two : SealedClass()
|
||||
abstract class Three : Two()
|
||||
final class Four : Three()
|
||||
}
|
||||
|
||||
class Modifiers {
|
||||
@Transient
|
||||
val transientField: String = ""
|
||||
|
||||
@Volatile
|
||||
var volatileField: String = ""
|
||||
|
||||
@Strictfp
|
||||
fun strictFp() {}
|
||||
|
||||
@JvmOverloads
|
||||
fun overloads(a: String = "", n: Int = 5): String = null!!
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
package modifiers;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class InternalClass {
|
||||
|
||||
public InternalClass() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package modifiers;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface InternalInterface {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package modifiers;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Modifiers {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final transient java.lang.String transientField = "";
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private volatile java.lang.String volatileField;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getTransientField() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getVolatileField() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setVolatileField(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String p0) {
|
||||
}
|
||||
|
||||
public final strictfp void strictFp() {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String overloads(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String a, int n) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String overloads(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String a) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String overloads() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Modifiers() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package modifiers;
|
||||
|
||||
@kotlin.Metadata()
|
||||
final class PrivateClass {
|
||||
|
||||
public PrivateClass() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package modifiers;
|
||||
|
||||
@kotlin.Metadata()
|
||||
abstract interface PrivateInterface {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package modifiers;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class PublicClass {
|
||||
|
||||
public PublicClass() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package modifiers;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract class PublicClassPrivateConstructor {
|
||||
|
||||
private PublicClassPrivateConstructor() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package modifiers;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public class PublicClassProtectedConstructor {
|
||||
|
||||
protected PublicClassProtectedConstructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static abstract interface ProtectedInterface {
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
static abstract interface PrivateInterface {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package modifiers;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface PublicInterface {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package modifiers;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract class SealedClass {
|
||||
|
||||
private SealedClass() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class One extends modifiers.SealedClass {
|
||||
|
||||
public One() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static class Two extends modifiers.SealedClass {
|
||||
|
||||
public Two() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static abstract class Three extends modifiers.SealedClass.Two {
|
||||
|
||||
public Three() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class Four extends modifiers.SealedClass.Three {
|
||||
|
||||
public Four() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
// FILE: a.kt
|
||||
@file:JvmMultifileClass
|
||||
@file:JvmName("M1")
|
||||
package test
|
||||
|
||||
fun foo() {}
|
||||
|
||||
// FILE: b.kt
|
||||
@file:JvmMultifileClass
|
||||
@file:JvmName("M1")
|
||||
package test
|
||||
|
||||
fun bar() {}
|
||||
|
||||
// FILE: c.kt
|
||||
@file:JvmMultifileClass
|
||||
@file:JvmName("M2")
|
||||
package test
|
||||
|
||||
fun baz() {}
|
||||
@@ -0,0 +1,30 @@
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class M1 {
|
||||
|
||||
public M1() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static final void bar() {
|
||||
}
|
||||
|
||||
public static final void foo() {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class M2 {
|
||||
|
||||
public M2() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static final void baz() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
class Test {
|
||||
class Nested {
|
||||
class NestedNested
|
||||
}
|
||||
|
||||
inner class Inner
|
||||
|
||||
object NestedObject
|
||||
|
||||
interface NestedInterface
|
||||
|
||||
enum class NestedEnum {
|
||||
BLACK, WHITE
|
||||
}
|
||||
}
|
||||
|
||||
class Foo {
|
||||
companion object Foo
|
||||
}
|
||||
|
||||
class A {
|
||||
val x: A? = null
|
||||
|
||||
fun f1(a: A, b: B): A? = null
|
||||
|
||||
interface B {
|
||||
val y: B?
|
||||
|
||||
fun f2(a: A, b: B): A? = null
|
||||
|
||||
class A {
|
||||
val x: A? = null
|
||||
val y: B? = null
|
||||
|
||||
fun f3(a: A, b: B) {}
|
||||
|
||||
object B
|
||||
}
|
||||
}
|
||||
|
||||
object C {
|
||||
interface C
|
||||
}
|
||||
}
|
||||
|
||||
class A2 {
|
||||
class B {
|
||||
class C {
|
||||
class D {
|
||||
class A2
|
||||
class B
|
||||
class Cme
|
||||
class D
|
||||
class E
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
@kotlin.Metadata()
|
||||
public final class A {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final A x = null;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final A getX() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final A f1(@org.jetbrains.annotations.NotNull()
|
||||
A a, @org.jetbrains.annotations.NotNull()
|
||||
A.B b) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public A() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static abstract interface B {
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract A.B getY();
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class DefaultImpls {
|
||||
|
||||
public DefaultImpls() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class C {
|
||||
public static final A.C INSTANCE = null;
|
||||
|
||||
private C() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class A2 {
|
||||
|
||||
public A2() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class B {
|
||||
|
||||
public B() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class C {
|
||||
|
||||
public C() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class D {
|
||||
|
||||
public D() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class Cme {
|
||||
|
||||
public Cme() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class E {
|
||||
|
||||
public E() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Foo {
|
||||
|
||||
public Foo() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Test {
|
||||
|
||||
public Test() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class Nested {
|
||||
|
||||
public Nested() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class NestedNested {
|
||||
|
||||
public NestedNested() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Inner {
|
||||
|
||||
public Inner() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class NestedObject {
|
||||
public static final Test.NestedObject INSTANCE = null;
|
||||
|
||||
private NestedObject() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static abstract interface NestedInterface {
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static enum NestedEnum {
|
||||
/*public static final*/ BLACK /* = new BLACK() */,
|
||||
/*public static final*/ WHITE /* = new WHITE() */;
|
||||
|
||||
NestedEnum() {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
// FILE: JavaClass.java
|
||||
public class JavaClass {
|
||||
public class Foo {
|
||||
public class Bar {}
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: J$B.java
|
||||
public class J$B {
|
||||
public class C {}
|
||||
|
||||
public class D$E {
|
||||
class F {}
|
||||
class F$G {}
|
||||
}
|
||||
|
||||
public class D$$E {}
|
||||
public class D$$$E {}
|
||||
}
|
||||
|
||||
// FILE: a.kt
|
||||
interface IFoo {
|
||||
interface IBar {
|
||||
annotation class Anno(vararg val value: kotlin.reflect.KClass<*>)
|
||||
|
||||
@Anno(IZoo::class)
|
||||
interface IZoo
|
||||
}
|
||||
}
|
||||
|
||||
class Experiment {
|
||||
annotation class Type
|
||||
|
||||
@Type
|
||||
data class Group(s: String)
|
||||
}
|
||||
|
||||
class Foo {
|
||||
open class Bar {
|
||||
object Zoo
|
||||
}
|
||||
}
|
||||
|
||||
class `A$B` {
|
||||
class C
|
||||
|
||||
@JvmField lateinit var c: C
|
||||
@JvmField lateinit var de: `D$E`
|
||||
|
||||
@JvmField lateinit var jc: `J$B`.C
|
||||
@JvmField lateinit var jde: `J$B`.`D$E`
|
||||
|
||||
class `D$E` {
|
||||
class F
|
||||
class `F$G`
|
||||
|
||||
@JvmField lateinit var f: F
|
||||
@JvmField lateinit var fg: `F$G`
|
||||
|
||||
@JvmField lateinit var jf: `J$B`.`D$E`.F
|
||||
@JvmField lateinit var jfg: `J$B`.`D$E`.`F$G`
|
||||
}
|
||||
|
||||
class `D$$E`
|
||||
class `D$$$E`
|
||||
|
||||
@JvmField lateinit var dee: `D$$E`
|
||||
@JvmField lateinit var deee: `D$$$E`
|
||||
|
||||
@JvmField lateinit var jdee: `J$B`.`D$$E`
|
||||
@JvmField lateinit var jdeee: `J$B`.`D$$$E`
|
||||
}
|
||||
|
||||
@IFoo.IBar.Anno(IFoo.IBar.IZoo::class, Foo.Bar::class)
|
||||
class Test1(val zoo: Foo.Bar.Zoo) : Foo.Bar(), IFoo.IBar, IFoo.IBar.IZoo {
|
||||
fun a(): Thread.State = Thread.State.NEW
|
||||
fun b(foo: JavaClass.Foo, bar: JavaClass.Foo.Bar) {}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
@kotlin.Metadata()
|
||||
public final class A$B {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public A$B.C c;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public A$B.D$E de;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public J$B.C jc;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public J$B.D$E jde;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public A$B.D$$E dee;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public A$B.D$$$E deee;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public J$B.D$$E jdee;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public J$B.D$$$E jdeee;
|
||||
|
||||
public A$B() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class C {
|
||||
|
||||
public C() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class D$E {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public A$B.D$E.F f;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public A$B.D$E.F$G fg;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public J$B.D$E.F jf;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public J$B.D$E.F$G jfg;
|
||||
|
||||
public D$E() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class F {
|
||||
|
||||
public F() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class F$G {
|
||||
|
||||
public F$G() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class D$$E {
|
||||
|
||||
public D$$E() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class D$$$E {
|
||||
|
||||
public D$$$E() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Experiment {
|
||||
|
||||
public Experiment() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public static abstract @interface Type {
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
@Experiment.Type()
|
||||
public static final class Group {
|
||||
|
||||
public Group(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String s) {
|
||||
super();
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Experiment.Group copy(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String s) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Foo {
|
||||
|
||||
public Foo() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static class Bar {
|
||||
|
||||
public Bar() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class Zoo {
|
||||
public static final Foo.Bar.Zoo INSTANCE = null;
|
||||
|
||||
private Zoo() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface IFoo {
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static abstract interface IBar {
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public static abstract @interface Anno {
|
||||
|
||||
public abstract java.lang.Class<?>[] value();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
@IFoo.IBar.Anno(value = {IFoo.IBar.IZoo.class})
|
||||
public static abstract interface IZoo {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
@IFoo.IBar.Anno(value = {IFoo.IBar.IZoo.class, Foo.Bar.class})
|
||||
public final class Test1 extends Foo.Bar implements IFoo.IBar, IFoo.IBar.IZoo {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final Foo.Bar.Zoo zoo = null;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.Thread.State a() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void b(@org.jetbrains.annotations.NotNull()
|
||||
JavaClass.Foo foo, @org.jetbrains.annotations.NotNull()
|
||||
JavaClass.Foo.Bar bar) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Foo.Bar.Zoo getZoo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Test1(@org.jetbrains.annotations.NotNull()
|
||||
Foo.Bar.Zoo zoo) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
// FILE: test/JavaClass.java
|
||||
package test;
|
||||
|
||||
class JavaClass {
|
||||
class Foo {
|
||||
class Bar {}
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: test/J$B.java
|
||||
package test;
|
||||
|
||||
public class J$B {
|
||||
public class C {}
|
||||
|
||||
public class D$E {
|
||||
class F {}
|
||||
class F$G {}
|
||||
}
|
||||
|
||||
public class D$$E {}
|
||||
public class D$$$E {}
|
||||
}
|
||||
|
||||
// FILE: a.kt
|
||||
package test
|
||||
|
||||
interface IFoo {
|
||||
interface IBar {
|
||||
annotation class Anno(vararg val value: kotlin.reflect.KClass<*>)
|
||||
|
||||
@Anno(IZoo::class)
|
||||
interface IZoo
|
||||
}
|
||||
}
|
||||
|
||||
class Experiment {
|
||||
annotation class Type
|
||||
|
||||
@Type
|
||||
data class Group(s: String)
|
||||
}
|
||||
|
||||
class Foo {
|
||||
open class Bar {
|
||||
object Zoo
|
||||
}
|
||||
}
|
||||
|
||||
class `A$B` {
|
||||
class C
|
||||
|
||||
@JvmField lateinit var c: C
|
||||
@JvmField lateinit var de: `D$E`
|
||||
|
||||
@JvmField lateinit var jc: `J$B`.C
|
||||
@JvmField lateinit var jde: `J$B`.`D$E`
|
||||
|
||||
class `D$E` {
|
||||
class F
|
||||
class `F$G`
|
||||
|
||||
@JvmField lateinit var f: F
|
||||
@JvmField lateinit var fg: `F$G`
|
||||
|
||||
@JvmField lateinit var jf: `J$B`.`D$E`.F
|
||||
@JvmField lateinit var jfg: `J$B`.`D$E`.`F$G`
|
||||
}
|
||||
|
||||
class `D$$E`
|
||||
class `D$$$E`
|
||||
|
||||
@JvmField lateinit var dee: `D$$E`
|
||||
@JvmField lateinit var deee: `D$$$E`
|
||||
|
||||
@JvmField lateinit var jdee: `J$B`.`D$$E`
|
||||
@JvmField lateinit var jdeee: `J$B`.`D$$$E`
|
||||
}
|
||||
|
||||
@IFoo.IBar.Anno(IFoo.IBar.IZoo::class, Foo.Bar::class)
|
||||
class Test1(val zoo: Foo.Bar.Zoo) : Foo.Bar(), IFoo.IBar, IFoo.IBar.IZoo {
|
||||
fun a(): Thread.State = Thread.State.NEW
|
||||
fun b(foo: JavaClass.Foo, bar: JavaClass.Foo.Bar) {}
|
||||
}
|
||||
+198
@@ -0,0 +1,198 @@
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class A$B {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public test.A$B.C c;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public test.A$B.D$E de;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public test.J$B.C jc;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public test.J$B.D$E jde;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public test.A$B.D$$E dee;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public test.A$B.D$$$E deee;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public test.J$B.D$$E jdee;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public test.J$B.D$$$E jdeee;
|
||||
|
||||
public A$B() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class C {
|
||||
|
||||
public C() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class D$E {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public test.A$B.D$E.F f;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public test.A$B.D$E.F$G fg;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public test.J$B.D$E.F jf;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public test.J$B.D$E.F$G jfg;
|
||||
|
||||
public D$E() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class F {
|
||||
|
||||
public F() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class F$G {
|
||||
|
||||
public F$G() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class D$$E {
|
||||
|
||||
public D$$E() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class D$$$E {
|
||||
|
||||
public D$$$E() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Experiment {
|
||||
|
||||
public Experiment() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public static abstract @interface Type {
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
@test.Experiment.Type()
|
||||
public static final class Group {
|
||||
|
||||
public Group(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String s) {
|
||||
super();
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final test.Experiment.Group copy(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String s) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Foo {
|
||||
|
||||
public Foo() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static class Bar {
|
||||
|
||||
public Bar() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class Zoo {
|
||||
public static final test.Foo.Bar.Zoo INSTANCE = null;
|
||||
|
||||
private Zoo() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface IFoo {
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static abstract interface IBar {
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public static abstract @interface Anno {
|
||||
|
||||
public abstract java.lang.Class<?>[] value();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
@test.IFoo.IBar.Anno(value = {test.IFoo.IBar.IZoo.class})
|
||||
public static abstract interface IZoo {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@test.IFoo.IBar.Anno(value = {test.IFoo.IBar.IZoo.class, test.Foo.Bar.class})
|
||||
public final class Test1 extends test.Foo.Bar implements test.IFoo.IBar, test.IFoo.IBar.IZoo {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final test.Foo.Bar.Zoo zoo = null;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.Thread.State a() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void b(@org.jetbrains.annotations.NotNull()
|
||||
test.JavaClass.Foo foo, @org.jetbrains.annotations.NotNull()
|
||||
test.JavaClass.Foo.Bar bar) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final test.Foo.Bar.Zoo getZoo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Test1(@org.jetbrains.annotations.NotNull()
|
||||
test.Foo.Bar.Zoo zoo) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// CORRECT_ERROR_TYPES
|
||||
// NON_EXISTENT_CLASS
|
||||
// NO_VALIDATION
|
||||
|
||||
@Suppress("UNRESOLVED_REFERENCE")
|
||||
object NonExistentType {
|
||||
val a: ABCDEF? = null
|
||||
val b: List<ABCDEF>? = null
|
||||
val c: (ABCDEF) -> Unit = { f -> }
|
||||
val d: ABCDEF<String, (List<ABCDEF>) -> Unit>? = null
|
||||
|
||||
fun a(a: ABCDEF, s: String): ABCDEF {}
|
||||
fun b(s: String): ABCDEF {}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE"})
|
||||
@kotlin.Metadata()
|
||||
public final class NonExistentType {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private static final ABCDEF a = null;
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private static final java.util.List<ABCDEF> b = null;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static final Function1<ABCDEF, kotlin.Unit> c = null;
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private static final ABCDEF<java.lang.String, ? extends Function1<java.util.List<ABCDEF>, kotlin.Unit>> d = null;
|
||||
public static final NonExistentType INSTANCE = null;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final ABCDEF getA() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.List<ABCDEF> getB() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Function1<ABCDEF, kotlin.Unit> getC() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final ABCDEF<java.lang.String, ? extends Function1<java.util.List<ABCDEF>, kotlin.Unit>> getD() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final ABCDEF a(@org.jetbrains.annotations.NotNull()
|
||||
ABCDEF a, @org.jetbrains.annotations.NotNull()
|
||||
java.lang.String s) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final ABCDEF b(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String s) {
|
||||
return null;
|
||||
}
|
||||
|
||||
private NonExistentType() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package error;
|
||||
|
||||
public final class NonExistentClass {
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
// CORRECT_ERROR_TYPES
|
||||
// NON_EXISTENT_CLASS
|
||||
// NO_VALIDATION
|
||||
// WITH_RUNTIME
|
||||
|
||||
import java.util.Calendar
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
@Suppress("UNRESOLVED_REFERENCE", "ANNOTATION_PARAMETER_MUST_BE_CONST", "NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION", "UNSUPPORTED_FEATURE")
|
||||
@Anno(Blah::class, arrayOf(NoFoo1::class, NoBar1::class), [NoFoo2::class, String::class], Boolean::class, NoBar3::class)
|
||||
class Test {
|
||||
lateinit var a: ABC
|
||||
val b: ABC? = null
|
||||
val c: List<ABC>? = null
|
||||
val d: List<Map<BCD, ABC<List<BCD>>>>? = null
|
||||
lateinit var e: List<out Map<out ABC, out BCD>?>
|
||||
lateinit var f: ABC<*>
|
||||
lateinit var g: List<*>
|
||||
lateinit var h: ABC<Int, String>
|
||||
lateinit var i: (ABC, List<BCD>) -> CDE
|
||||
lateinit var j: () -> CDE
|
||||
lateinit var k: ABC.(List<BCD>) -> CDE
|
||||
|
||||
lateinit var l: ABC.BCD.EFG
|
||||
|
||||
val m = ABC()
|
||||
val n = "".toString()
|
||||
|
||||
lateinit var o11: List<List<List<List<List<List<List<List<List<List<ABC>>>>>>>>>>
|
||||
lateinit var o10: List<List<List<List<List<List<List<List<List<ABC>>>>>>>>>
|
||||
|
||||
lateinit var p: Calendar.Builder
|
||||
|
||||
fun f1(a: ABC): BCD? {
|
||||
return null
|
||||
}
|
||||
|
||||
fun <T> f2(a: ABC<String, Int, () -> BCD>) {}
|
||||
|
||||
fun <T> f3(a: ABC, b: Int): Long {
|
||||
return 0
|
||||
}
|
||||
|
||||
fun f4() = ABC()
|
||||
|
||||
fun <T> MyType<T>.f5(): java.lang.Class<Enum<*>>? = null
|
||||
}
|
||||
|
||||
class MyType<T>
|
||||
|
||||
annotation class Anno(val a: KClass<*>, val b: Array<KClass<*>>, val c: Array<KClass<*>>, vararg val d: KClass<*>)
|
||||
+245
@@ -0,0 +1,245 @@
|
||||
import java.util.Calendar;
|
||||
import kotlin.reflect.KClass;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Anno {
|
||||
|
||||
public abstract java.lang.Class<?> a();
|
||||
|
||||
public abstract java.lang.Class<?>[] b();
|
||||
|
||||
public abstract java.lang.Class<?>[] c();
|
||||
|
||||
public abstract java.lang.Class<?>[] d();
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
import java.util.Calendar;
|
||||
import kotlin.reflect.KClass;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class MyType<T extends java.lang.Object> {
|
||||
|
||||
public MyType() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
import java.util.Calendar;
|
||||
import kotlin.reflect.KClass;
|
||||
|
||||
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE", "ANNOTATION_PARAMETER_MUST_BE_CONST", "NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION", "UNSUPPORTED_FEATURE"})
|
||||
@kotlin.Metadata()
|
||||
@Anno(a = Blah.class, b = {NoFoo1.class, NoBar1.class}, c = {NoFoo2.class, String.class}, d = {Boolean.class, NoBar3.class})
|
||||
public final class Test {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public ABC a;
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final ABC b = null;
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final java.util.List<ABC> c = null;
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final java.util.List<java.util.Map<BCD, ABC<? extends java.util.List<BCD>>>> d = null;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.util.List<? extends java.util.Map<? extends ABC, ? extends BCD>> e;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public ABC<?> f;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.util.List<?> g;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public ABC<java.lang.Integer, java.lang.String> h;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public Function2<ABC, java.util.List<BCD>, CDE> i;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public Function0<CDE> j;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public Function2<ABC, java.util.List<BCD>, CDE> k;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public ABC.BCD.EFG l;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final error.NonExistentClass m = null;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String n = "";
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends error.NonExistentClass>>>>>>>>>> o11;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<ABC>>>>>>>>> o10;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.util.Calendar.Builder p;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final ABC getA() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setA(@org.jetbrains.annotations.NotNull()
|
||||
ABC p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final ABC getB() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.List<ABC> getC() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.List<java.util.Map<BCD, ABC<? extends java.util.List<BCD>>>> getD() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.List<? extends java.util.Map<? extends ABC, ? extends BCD>> getE() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setE(@org.jetbrains.annotations.NotNull()
|
||||
java.util.List<? extends java.util.Map<? extends ABC, ? extends BCD>> p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final ABC<?> getF() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setF(@org.jetbrains.annotations.NotNull()
|
||||
ABC<?> p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.List<?> getG() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setG(@org.jetbrains.annotations.NotNull()
|
||||
java.util.List<?> p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final ABC<java.lang.Integer, java.lang.String> getH() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setH(@org.jetbrains.annotations.NotNull()
|
||||
ABC<java.lang.Integer, java.lang.String> p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Function2<ABC, java.util.List<BCD>, CDE> getI() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setI(@org.jetbrains.annotations.NotNull()
|
||||
Function2<ABC, java.util.List<BCD>, CDE> p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Function0<CDE> getJ() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setJ(@org.jetbrains.annotations.NotNull()
|
||||
Function0<CDE> p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Function2<ABC, java.util.List<BCD>, CDE> getK() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setK(@org.jetbrains.annotations.NotNull()
|
||||
Function2<ABC, java.util.List<BCD>, CDE> p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final ABC.BCD.EFG getL() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setL(@org.jetbrains.annotations.NotNull()
|
||||
ABC.BCD.EFG p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final error.NonExistentClass getM() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getN() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.List<java.util.List<java.util.List<java.util.List<java.util.List<java.util.List<java.util.List<java.util.List<java.util.List<java.util.List<error.NonExistentClass>>>>>>>>>> getO11() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setO11(@org.jetbrains.annotations.NotNull()
|
||||
java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends error.NonExistentClass>>>>>>>>>> p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<ABC>>>>>>>>> getO10() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setO10(@org.jetbrains.annotations.NotNull()
|
||||
java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<? extends java.util.List<ABC>>>>>>>>> p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.Calendar.Builder getP() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void setP(@org.jetbrains.annotations.NotNull()
|
||||
java.util.Calendar.Builder p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final BCD f1(@org.jetbrains.annotations.NotNull()
|
||||
ABC a) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final <T extends java.lang.Object>void f2(@org.jetbrains.annotations.NotNull()
|
||||
ABC<java.lang.String, java.lang.Integer, Function0<BCD>> a) {
|
||||
}
|
||||
|
||||
public final <T extends java.lang.Object>long f3(@org.jetbrains.annotations.NotNull()
|
||||
ABC a, int b) {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final error.NonExistentClass f4() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final <T extends java.lang.Object>java.lang.Class<java.lang.Enum<?>> f5(@org.jetbrains.annotations.NotNull()
|
||||
MyType<T> $receiver) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Test() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package error;
|
||||
|
||||
public final class NonExistentClass {
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// NON_EXISTENT_CLASS
|
||||
// NO_VALIDATION
|
||||
|
||||
@Suppress("UNRESOLVED_REFERENCE")
|
||||
object NonExistentType {
|
||||
val a: ABCDEF? = null
|
||||
val b: List<ABCDEF>? = null
|
||||
val c: (ABCDEF) -> Unit = { f -> }
|
||||
val d: ABCDEF<String, (List<ABCDEF>) -> Unit>? = null
|
||||
|
||||
fun a(a: ABCDEF, s: String): ABCDEF {}
|
||||
fun b(s: String): ABCDEF {}
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE"})
|
||||
@kotlin.Metadata()
|
||||
public final class NonExistentType {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private static final error.NonExistentClass a = null;
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private static final java.util.List<error.NonExistentClass> b = null;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static final kotlin.jvm.functions.Function1<error.NonExistentClass, kotlin.Unit> c = null;
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private static final error.NonExistentClass d = null;
|
||||
public static final NonExistentType INSTANCE = null;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final error.NonExistentClass getA() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.List<error.NonExistentClass> getB() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final kotlin.jvm.functions.Function1<error.NonExistentClass, kotlin.Unit> getC() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final error.NonExistentClass getD() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final error.NonExistentClass a(@org.jetbrains.annotations.NotNull()
|
||||
error.NonExistentClass a, @org.jetbrains.annotations.NotNull()
|
||||
java.lang.String s) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final error.NonExistentClass b(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String s) {
|
||||
return null;
|
||||
}
|
||||
|
||||
private NonExistentType() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package error;
|
||||
|
||||
public final class NonExistentClass {
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
object PrimitiveTypes {
|
||||
const val booleanFalse: Boolean = false
|
||||
const val booleanTrue: Boolean = true
|
||||
|
||||
const val int0: Int = 0
|
||||
const val intMinus1000: Int = -1000
|
||||
const val intMinValue: Int = Int.MIN_VALUE
|
||||
const val intMaxValue: Int = Int.MAX_VALUE
|
||||
const val intHex: Int = 0xffffffff.toInt()
|
||||
|
||||
const val byte0: Byte = 0.toByte()
|
||||
const val byte50: Byte = 50.toByte()
|
||||
|
||||
const val short5: Short = 5.toShort()
|
||||
|
||||
const val charC: Char = 'C'
|
||||
const val char0: Char = 0.toChar()
|
||||
const val char10: Char = 10.toChar()
|
||||
const val char13: Char = 13.toChar()
|
||||
|
||||
const val long0: Long = 0L
|
||||
const val longMaxValue: Long = Long.MAX_VALUE
|
||||
const val longMinValue: Long = Long.MIN_VALUE
|
||||
const val longHex: Long = 0xffffffff
|
||||
|
||||
const val float54 = 5.4f
|
||||
val floatMaxValue = Float.MAX_VALUE
|
||||
val floatNan = Float.NaN
|
||||
val floatPositiveInfinity = Float.POSITIVE_INFINITY
|
||||
val floatNegativeInfinity = Float.NEGATIVE_INFINITY
|
||||
|
||||
const val double54 = 5.4
|
||||
val doubleMaxValue = Double.MAX_VALUE
|
||||
val doubleNan = Double.NaN
|
||||
val doublePositiveInfinity = Double.POSITIVE_INFINITY
|
||||
val doubleNegativeInfinity = Double.NEGATIVE_INFINITY
|
||||
|
||||
const val stringHelloWorld: String = "Hello, world!"
|
||||
const val stringQuotes: String = "quotes \" ''quotes"
|
||||
const val stringRN: String = "\r\n"
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
@kotlin.Metadata()
|
||||
public final class PrimitiveTypes {
|
||||
public static final boolean booleanFalse = false;
|
||||
public static final boolean booleanTrue = true;
|
||||
public static final int int0 = 0;
|
||||
public static final int intMinus1000 = -1000;
|
||||
public static final int intMinValue = -2147483648;
|
||||
public static final int intMaxValue = 2147483647;
|
||||
public static final int intHex = -1;
|
||||
public static final byte byte0 = (byte)0;
|
||||
public static final byte byte50 = (byte)50;
|
||||
public static final short short5 = (short)5;
|
||||
public static final char charC = 'C';
|
||||
public static final char char0 = '\u0000';
|
||||
public static final char char10 = '\n';
|
||||
public static final char char13 = '\r';
|
||||
public static final long long0 = 0L;
|
||||
public static final long longMaxValue = 9223372036854775807L;
|
||||
public static final long longMinValue = -9223372036854775808L;
|
||||
public static final long longHex = 4294967295L;
|
||||
public static final float float54 = 5.4F;
|
||||
private static final float floatMaxValue = 0.0F;
|
||||
private static final float floatNan = 0.0F;
|
||||
private static final float floatPositiveInfinity = 0.0F;
|
||||
private static final float floatNegativeInfinity = 0.0F;
|
||||
public static final double double54 = 5.4;
|
||||
private static final double doubleMaxValue = 0.0;
|
||||
private static final double doubleNan = 0.0;
|
||||
private static final double doublePositiveInfinity = 0.0;
|
||||
private static final double doubleNegativeInfinity = 0.0;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String stringHelloWorld = "Hello, world!";
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String stringQuotes = "quotes \" \'\'quotes";
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String stringRN = "\r\n";
|
||||
public static final PrimitiveTypes INSTANCE = null;
|
||||
|
||||
public final float getFloatMaxValue() {
|
||||
return 0.0F;
|
||||
}
|
||||
|
||||
public final float getFloatNan() {
|
||||
return 0.0F;
|
||||
}
|
||||
|
||||
public final float getFloatPositiveInfinity() {
|
||||
return 0.0F;
|
||||
}
|
||||
|
||||
public final float getFloatNegativeInfinity() {
|
||||
return 0.0F;
|
||||
}
|
||||
|
||||
public final double getDoubleMaxValue() {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
public final double getDoubleNan() {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
public final double getDoublePositiveInfinity() {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
public final double getDoubleNegativeInfinity() {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
private PrimitiveTypes() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
annotation class Anno
|
||||
|
||||
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.CLASS)
|
||||
annotation class Anno2
|
||||
|
||||
class Test {
|
||||
@property:[Anno Anno2]
|
||||
val prop = "A"
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Anno {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE})
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.PROPERTY, kotlin.annotation.AnnotationTarget.CLASS})
|
||||
public abstract @interface Anno2 {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Test {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String prop = "A";
|
||||
|
||||
@Anno2()
|
||||
@Anno()
|
||||
public static void prop$annotations() {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getProp() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Test() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// FILE: a.kt
|
||||
package test
|
||||
|
||||
fun foo() {}
|
||||
|
||||
// FILE: b.kt
|
||||
package test
|
||||
|
||||
fun bar() {}
|
||||
@@ -0,0 +1,27 @@
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class AKt {
|
||||
|
||||
public AKt() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static final void foo() {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class BKt {
|
||||
|
||||
public BKt() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static final void bar() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
// EXPECTED_ERROR '60x60' is an invalid Java enum value name
|
||||
|
||||
class `:)` {
|
||||
lateinit val f: String
|
||||
}
|
||||
|
||||
// Commented declarations won't compile with the current Kotlin
|
||||
class Test {
|
||||
class `(^_^)`
|
||||
|
||||
lateinit val simpleName: String
|
||||
lateinit val `strange name`: String
|
||||
// lateinit val strangeType: List<`!A@`>
|
||||
|
||||
fun simpleFun() {}
|
||||
|
||||
@Anno(name = "Woofwoof", size = StrangeEnum.`60x60`, `A B` = "S")
|
||||
fun simpleFun2(a: String, b: String) {}
|
||||
|
||||
fun `strange!Fun`() {}
|
||||
// fun strangeFun2(a: String, b: `A()B()`) {}
|
||||
// fun strangeFun3(a: String, b: `A B`) {}
|
||||
fun strangeFun4(a: String, `A()B()`: String) {}
|
||||
// fun strangeFun5(a: `A B`.C) {}
|
||||
}
|
||||
|
||||
enum class StrangeEnum(val size: String) {
|
||||
`60x60`("60x60"),
|
||||
`70x70`("70x70"),
|
||||
`80x80`("80x80"),
|
||||
InvalidFieldName("0x0") // Workaround to pass javac analysis
|
||||
}
|
||||
|
||||
annotation class Anno(val size: StrangeEnum, val name: String, val `A B`: String)
|
||||
|
||||
class `!A@`
|
||||
class `A()B()`
|
||||
class `A B` {
|
||||
class C
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Anno {
|
||||
|
||||
public abstract StrangeEnum size();
|
||||
|
||||
public abstract java.lang.String name();
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public enum StrangeEnum {
|
||||
/*public static final*/ InvalidFieldName /* = new InvalidFieldName(null) */;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String size = null;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getSize() {
|
||||
return null;
|
||||
}
|
||||
|
||||
StrangeEnum(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String size) {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Test {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.String simpleName;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getSimpleName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void simpleFun() {
|
||||
}
|
||||
|
||||
@Anno(name = "Woofwoof", size = StrangeEnum.InvalidFieldName)
|
||||
public final void simpleFun2(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String a, @org.jetbrains.annotations.NotNull()
|
||||
java.lang.String b) {
|
||||
}
|
||||
|
||||
public final void strangeFun4(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String a, @org.jetbrains.annotations.NotNull()
|
||||
java.lang.String p1_949560896) {
|
||||
}
|
||||
|
||||
public Test() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
class `My $ name` {
|
||||
fun `(^_^)`(`)))))`: Int) {}
|
||||
|
||||
// unicode symbol •
|
||||
val `(@•@)`: String = ""
|
||||
|
||||
// russian
|
||||
val `Котлин-компилятор`: String = ""
|
||||
|
||||
// japanese hiragana
|
||||
fun `こ と り ん!`() {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package test.another
|
||||
|
||||
annotation class Anno(val value: String)
|
||||
|
||||
fun topLevelFunction(): String? = null
|
||||
|
||||
fun <X : CharSequence, T : List<out X>> topLevelGenericFunction(): T? {
|
||||
return null!!
|
||||
}
|
||||
|
||||
val topLevelProperty = 2
|
||||
|
||||
val topLevelProperty2: String
|
||||
get() = ""
|
||||
|
||||
fun @receiver:Anno("rec") String.extensionFunction(@Anno("1") a: String, @Anno("2") b: String) {}
|
||||
|
||||
@Anno("extpr")
|
||||
var <T: Any> @receiver:Anno("propRec") T.extensionProperty: String
|
||||
get() = ""
|
||||
set(@Anno("setparam") setParamName) {}
|
||||
@@ -0,0 +1,67 @@
|
||||
package test.another;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Anno {
|
||||
|
||||
public abstract java.lang.String value();
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test.another;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class TopLevelKt {
|
||||
|
||||
public TopLevelKt() {
|
||||
super();
|
||||
}
|
||||
private static final int topLevelProperty = 2;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.String topLevelFunction() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final <X extends java.lang.CharSequence, T extends java.util.List<? extends X>>T topLevelGenericFunction() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final int getTopLevelProperty() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getTopLevelProperty2() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final void extensionFunction(@org.jetbrains.annotations.NotNull()
|
||||
@Anno(value = "rec")
|
||||
java.lang.String $receiver, @org.jetbrains.annotations.NotNull()
|
||||
@Anno(value = "1")
|
||||
java.lang.String a, @org.jetbrains.annotations.NotNull()
|
||||
@Anno(value = "2")
|
||||
java.lang.String b) {
|
||||
}
|
||||
|
||||
@Anno(value = "extpr")
|
||||
public static void extensionProperty$annotations(java.lang.Object p0) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final <T extends java.lang.Object>java.lang.String getExtensionProperty(@org.jetbrains.annotations.NotNull()
|
||||
@Anno(value = "propRec")
|
||||
T $receiver) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final <T extends java.lang.Object>void setExtensionProperty(@org.jetbrains.annotations.NotNull()
|
||||
@Anno(value = "propRec")
|
||||
T $receiver, @org.jetbrains.annotations.NotNull()
|
||||
@Anno(value = "setparam")
|
||||
java.lang.String setParamName) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package error;
|
||||
|
||||
public final class NonExistentClass {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface MyAnnotation {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Simple {
|
||||
public static final test.Simple.Companion Companion = null;
|
||||
|
||||
@MyAnnotation()
|
||||
public final void myMethod() {
|
||||
}
|
||||
|
||||
public Simple() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class NestedClass {
|
||||
|
||||
public NestedClass() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class NestedNestedClass {
|
||||
|
||||
public NestedNestedClass() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class InnerClass {
|
||||
|
||||
public InnerClass() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class Companion {
|
||||
|
||||
private Companion() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package test
|
||||
|
||||
internal class Simple {
|
||||
@MyAnnotation
|
||||
fun myMethod() {}
|
||||
|
||||
class NestedClass {
|
||||
class NestedNestedClass
|
||||
}
|
||||
|
||||
inner class InnerClass
|
||||
companion object
|
||||
}
|
||||
|
||||
internal annotation class MyAnnotation
|
||||
@@ -0,0 +1,4 @@
|
||||
MyMethodMyAnnotation.java:
|
||||
|
||||
package generated;
|
||||
class MyMethodMyAnnotation {}
|
||||
@@ -0,0 +1,48 @@
|
||||
package error;
|
||||
|
||||
public final class NonExistentClass {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface MyAnnotation {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@MyAnnotation()
|
||||
public final class State {
|
||||
private final int someInt = 0;
|
||||
private final long someLong = 0L;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String someString = null;
|
||||
|
||||
public final int getSomeInt() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final long getSomeLong() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getSomeString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public State(int someInt, long someLong, @org.jetbrains.annotations.NotNull()
|
||||
java.lang.String someString) {
|
||||
super();
|
||||
}
|
||||
|
||||
public State(int someInt, long someLong) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
internal annotation class MyAnnotation
|
||||
|
||||
@MyAnnotation
|
||||
internal class State @JvmOverloads constructor(
|
||||
val someInt: Int,
|
||||
val someLong: Long,
|
||||
val someString: String = ""
|
||||
)
|
||||
@@ -0,0 +1,4 @@
|
||||
StateMyAnnotation.java:
|
||||
|
||||
package generated;
|
||||
class StateMyAnnotation {}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user