[LC] rename ultraLightClasses to lightClassByPsi
This commit is contained in:
+90
@@ -0,0 +1,90 @@
|
||||
public final class KotlinClass /* KotlinClass*/ {
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static Custom companionLateinitStaticVariable;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final KotlinClass.Companion Companion;
|
||||
|
||||
public Custom classLateinitVariable;
|
||||
|
||||
public static Custom companionLateinitVariable;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Custom getClassLateinitVariable();// getClassLateinitVariable()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final Custom getCompanionLateinitStaticVariable();// getCompanionLateinitStaticVariable()
|
||||
|
||||
public KotlinClass();// .ctor()
|
||||
|
||||
public final void setClassLateinitVariable(@org.jetbrains.annotations.NotNull() Custom);// setClassLateinitVariable(Custom)
|
||||
|
||||
public static final void setCompanionLateinitStaticVariable(@org.jetbrains.annotations.NotNull() Custom);// setCompanionLateinitStaticVariable(Custom)
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* KotlinClass.Companion*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Custom getCompanionLateinitStaticVariable();// getCompanionLateinitStaticVariable()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Custom getCompanionLateinitVariable();// getCompanionLateinitVariable()
|
||||
|
||||
private Companion();// .ctor()
|
||||
|
||||
public final void setCompanionLateinitStaticVariable(@org.jetbrains.annotations.NotNull() Custom);// setCompanionLateinitStaticVariable(Custom)
|
||||
|
||||
public final void setCompanionLateinitVariable(@org.jetbrains.annotations.NotNull() Custom);// setCompanionLateinitVariable(Custom)
|
||||
|
||||
}
|
||||
|
||||
public abstract class AbstractKotlinClass /* AbstractKotlinClass*/ {
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static Custom companionLateinitStaticVariable;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final AbstractKotlinClass.Companion Companion;
|
||||
|
||||
public Custom classLateinitVariable;
|
||||
|
||||
public static Custom companionLateinitVariable;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Custom getClassLateinitVariable();// getClassLateinitVariable()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final Custom getCompanionLateinitStaticVariable();// getCompanionLateinitStaticVariable()
|
||||
|
||||
public AbstractKotlinClass();// .ctor()
|
||||
|
||||
public final void setClassLateinitVariable(@org.jetbrains.annotations.NotNull() Custom);// setClassLateinitVariable(Custom)
|
||||
|
||||
public static final void setCompanionLateinitStaticVariable(@org.jetbrains.annotations.NotNull() Custom);// setCompanionLateinitStaticVariable(Custom)
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* AbstractKotlinClass.Companion*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Custom getCompanionLateinitStaticVariable();// getCompanionLateinitStaticVariable()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Custom getCompanionLateinitVariable();// getCompanionLateinitVariable()
|
||||
|
||||
private Companion();// .ctor()
|
||||
|
||||
public final void setCompanionLateinitStaticVariable(@org.jetbrains.annotations.NotNull() Custom);// setCompanionLateinitStaticVariable(Custom)
|
||||
|
||||
public final void setCompanionLateinitVariable(@org.jetbrains.annotations.NotNull() Custom);// setCompanionLateinitVariable(Custom)
|
||||
|
||||
}
|
||||
|
||||
public final class Custom /* Custom*/ {
|
||||
public Custom();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
class KotlinClass {
|
||||
lateinit var classLateinitVariable: Custom
|
||||
|
||||
companion object {
|
||||
lateinit var companionLateinitVariable: Custom
|
||||
|
||||
@JvmStatic
|
||||
lateinit var companionLateinitStaticVariable: Custom
|
||||
}
|
||||
}
|
||||
|
||||
abstract class AbstractKotlinClass {
|
||||
lateinit var classLateinitVariable: Custom
|
||||
|
||||
companion object {
|
||||
lateinit var companionLateinitVariable: Custom
|
||||
|
||||
@JvmStatic
|
||||
lateinit var companionLateinitStaticVariable: Custom
|
||||
}
|
||||
}
|
||||
|
||||
lateinit var topLevelLateinit: Custom
|
||||
|
||||
class Custom
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
public final class KotlinClass /* KotlinClass*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final KotlinClass.Companion Companion;
|
||||
|
||||
public Custom classLateinitVariable;
|
||||
|
||||
public static Custom companionLateinitStaticVariable;
|
||||
|
||||
public static Custom companionLateinitVariable;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Custom getClassLateinitVariable();// getClassLateinitVariable()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final Custom getCompanionLateinitStaticVariable();// getCompanionLateinitStaticVariable()
|
||||
|
||||
public KotlinClass();// .ctor()
|
||||
|
||||
public final void setClassLateinitVariable(@org.jetbrains.annotations.NotNull() Custom);// setClassLateinitVariable(Custom)
|
||||
|
||||
public static final void setCompanionLateinitStaticVariable(@org.jetbrains.annotations.NotNull() Custom);// setCompanionLateinitStaticVariable(Custom)
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* KotlinClass.Companion*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Custom getCompanionLateinitStaticVariable();// getCompanionLateinitStaticVariable()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Custom getCompanionLateinitVariable();// getCompanionLateinitVariable()
|
||||
|
||||
private Companion();// .ctor()
|
||||
|
||||
public final void setCompanionLateinitStaticVariable(@org.jetbrains.annotations.NotNull() Custom);// setCompanionLateinitStaticVariable(Custom)
|
||||
|
||||
public final void setCompanionLateinitVariable(@org.jetbrains.annotations.NotNull() Custom);// setCompanionLateinitVariable(Custom)
|
||||
|
||||
}
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Anno /* Anno*/ {
|
||||
}
|
||||
|
||||
public final class TestClass /* TestClass*/ {
|
||||
private int hello;
|
||||
|
||||
public TestClass(int);// .ctor(int)
|
||||
|
||||
public final int getHello();// getHello()
|
||||
|
||||
public final void setHello(@Anno() int);// setHello(int)
|
||||
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// CHECK_BY_JAVA_FILE
|
||||
annotation class Anno
|
||||
|
||||
class TestClass(@setparam:Anno var hello: Int)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Anno /* Anno*/ {
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
|
||||
public abstract @interface Anno2 /* Anno2*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
|
||||
public abstract @interface Anno3 /* Anno3*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
|
||||
public abstract @interface Anno4 /* Anno4*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
|
||||
public abstract @interface Anno5 /* Anno5*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
|
||||
public abstract @interface Anno6 /* Anno6*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface AnnoWithCompanion /* AnnoWithCompanion*/ {
|
||||
@kotlin.jvm.JvmField()
|
||||
public static final int x = 42 /* initializer type: int */;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final AnnoWithCompanion.Companion Companion;
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* AnnoWithCompanion.Companion*/ {
|
||||
private Companion();// .ctor()
|
||||
|
||||
public final void foo();// foo()
|
||||
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Anno /* Anno*/ {
|
||||
public abstract Anno[] x() default {Anno(p = "a"), Anno(p = "b")};// x()
|
||||
|
||||
public abstract java.lang.String p() default "";// p()
|
||||
|
||||
}
|
||||
|
||||
@Deprecated(message = "This anno is deprecated, use === instead", replaceWith = @ReplaceWith(expression = "this === other"))
|
||||
@java.lang.annotation.Documented()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.SOURCE)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
|
||||
@kotlin.annotation.MustBeDocumented()
|
||||
@kotlin.annotation.Retention(value = kotlin.annotation.AnnotationRetention.SOURCE)
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
|
||||
public abstract @interface Fancy /* Fancy*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface ReplaceWith /* ReplaceWith*/ {
|
||||
public abstract java.lang.String expression();// expression()
|
||||
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface AnnotatedAttribute /* AnnotatedAttribute*/ {
|
||||
@Anno()
|
||||
public abstract java.lang.String x();// x()
|
||||
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Deprecated /* Deprecated*/ {
|
||||
public abstract ReplaceWith replaceWith() default @ReplaceWith(expression = "");// replaceWith()
|
||||
|
||||
public abstract java.lang.String message();// message()
|
||||
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Ann /* Ann*/ {
|
||||
public abstract java.lang.Class<? extends java.lang.Object> arg2();// arg2()
|
||||
|
||||
public abstract java.lang.Class<?> arg1();// arg1()
|
||||
|
||||
}
|
||||
|
||||
@Anno()
|
||||
public final class F /* F*/ implements java.lang.Runnable {
|
||||
@Anno(p = "p")
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private java.lang.String prop = "x" /* initializer type: java.lang.String */;
|
||||
|
||||
@Anno(p = "f")
|
||||
public final void f(@Anno() @org.jetbrains.annotations.NotNull() java.lang.String);// f(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getProp();// getProp()
|
||||
|
||||
public F();// .ctor()
|
||||
|
||||
public final void setProp(@org.jetbrains.annotations.NotNull() java.lang.String);// setProp(java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public final class Foo /* Foo*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.lang.String x = null /* initializer type: null */;
|
||||
|
||||
@Anno()
|
||||
public Foo(error.NonExistentClass);// .ctor(error.NonExistentClass)
|
||||
|
||||
@Anno()
|
||||
public final void f4(@org.jetbrains.annotations.NotNull() java.lang.String);// f4(java.lang.String)
|
||||
|
||||
@Anno()
|
||||
public final void setX(@org.jetbrains.annotations.Nullable() java.lang.String);// setX(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getX();// getX()
|
||||
|
||||
}
|
||||
|
||||
@Ann(arg1 = java.lang.String.class, arg2 = int.class)
|
||||
public final class MyClass /* MyClass*/ {
|
||||
public MyClass();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Example /* Example*/ {
|
||||
@Ann()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String foo;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String bar;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String quux;
|
||||
|
||||
@Ann()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getBar();// getBar()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getFoo();// getFoo()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getQuux();// getQuux()
|
||||
|
||||
public Example(@org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.NotNull() java.lang.String, @Ann() @org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String, java.lang.String, java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public final class CtorAnnotations /* CtorAnnotations*/ {
|
||||
@Anno()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String x;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String y;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String z;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getX();// getX()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getY();// getY()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getZ();// getZ()
|
||||
|
||||
public CtorAnnotations(@Anno() @org.jetbrains.annotations.NotNull() java.lang.String, @Anno() @org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String, java.lang.String, java.lang.String)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
|
||||
public abstract @interface Anno2 /* Anno2*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
|
||||
public abstract @interface Anno3 /* Anno3*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
|
||||
public abstract @interface Anno4 /* Anno4*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
|
||||
public abstract @interface Anno5 /* Anno5*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
|
||||
public abstract @interface Anno6 /* Anno6*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface AnnoWithCompanion /* AnnoWithCompanion*/ {
|
||||
@kotlin.jvm.JvmField()
|
||||
public static final int x;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final AnnoWithCompanion.Companion Companion;
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* AnnoWithCompanion.Companion*/ {
|
||||
private Companion();// .ctor()
|
||||
|
||||
public final void foo();// foo()
|
||||
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Anno /* Anno*/ {
|
||||
public abstract Anno[] x() default {@Anno(p = "a"), @Anno(p = "b")};// x()
|
||||
|
||||
public abstract java.lang.String p() default "";// p()
|
||||
|
||||
}
|
||||
|
||||
@Deprecated(message = "This anno is deprecated, use === instead", replaceWith = @ReplaceWith(expression = "this === other"))
|
||||
@java.lang.annotation.Documented()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.SOURCE)
|
||||
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
|
||||
@kotlin.annotation.MustBeDocumented()
|
||||
@kotlin.annotation.Retention(value = kotlin.annotation.AnnotationRetention.SOURCE)
|
||||
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
|
||||
public abstract @interface Fancy /* Fancy*/ {
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface ReplaceWith /* ReplaceWith*/ {
|
||||
public abstract java.lang.String expression();// expression()
|
||||
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface AnnotatedAttribute /* AnnotatedAttribute*/ {
|
||||
@Anno()
|
||||
public abstract java.lang.String x();// x()
|
||||
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Deprecated /* Deprecated*/ {
|
||||
public abstract ReplaceWith replaceWith() default @ReplaceWith(expression = "");// replaceWith()
|
||||
|
||||
public abstract java.lang.String message();// message()
|
||||
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Ann /* Ann*/ {
|
||||
public abstract java.lang.Class<? extends java.lang.Object> arg2();// arg2()
|
||||
|
||||
public abstract java.lang.Class<?> arg1();// arg1()
|
||||
|
||||
}
|
||||
|
||||
@Anno()
|
||||
public final class F /* F*/ implements java.lang.Runnable {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private java.lang.String prop;
|
||||
|
||||
@Anno(p = "f")
|
||||
public final void f(@Anno() @org.jetbrains.annotations.NotNull() java.lang.String);// f(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getProp();// getProp()
|
||||
|
||||
public F();// .ctor()
|
||||
|
||||
public final void setProp(@org.jetbrains.annotations.NotNull() java.lang.String);// setProp(java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public final class Foo /* Foo*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.lang.String x;
|
||||
|
||||
@Anno()
|
||||
public Foo(error.NonExistentClass);// .ctor(error.NonExistentClass)
|
||||
|
||||
@Anno()
|
||||
public final void f4(@org.jetbrains.annotations.NotNull() java.lang.String);// f4(java.lang.String)
|
||||
|
||||
@Anno()
|
||||
public final void setX(@org.jetbrains.annotations.Nullable() java.lang.String);// setX(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getX();// getX()
|
||||
|
||||
}
|
||||
|
||||
@Ann(arg1 = String::class, arg2 = Int::class)
|
||||
public final class MyClass /* MyClass*/ {
|
||||
public MyClass();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Example /* Example*/ {
|
||||
@Ann()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String foo;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String bar;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String quux;
|
||||
|
||||
@Ann()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getBar();// getBar()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getFoo();// getFoo()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getQuux();// getQuux()
|
||||
|
||||
public Example(@org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.NotNull() java.lang.String, @Ann() @org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String, java.lang.String, java.lang.String)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
@Target(*[AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.EXPRESSION])
|
||||
annotation class Anno2()
|
||||
|
||||
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.EXPRESSION])
|
||||
annotation class Anno3()
|
||||
|
||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.EXPRESSION)
|
||||
annotation class Anno4()
|
||||
|
||||
@Target(*arrayOf(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.EXPRESSION))
|
||||
annotation class Anno5()
|
||||
|
||||
@Target(allowedTargets = arrayOf(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.EXPRESSION))
|
||||
annotation class Anno6()
|
||||
|
||||
annotation class AnnoWithCompanion() {
|
||||
companion object {
|
||||
fun foo() {}
|
||||
@JvmField
|
||||
val x: Int = 42
|
||||
}
|
||||
}
|
||||
|
||||
annotation class Anno(val p: String = "", val x: Array<Anno> = arrayOf(Anno(p = "a"), Anno(p = "b")))
|
||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION,
|
||||
AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.EXPRESSION)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
@MustBeDocumented
|
||||
@Deprecated("This anno is deprecated, use === instead", ReplaceWith("this === other"))
|
||||
annotation class Fancy
|
||||
|
||||
annotation class ReplaceWith(val expression: String)
|
||||
|
||||
annotation class AnnotatedAttribute(@get:Anno val x: String)
|
||||
|
||||
annotation class Deprecated(
|
||||
val message: String,
|
||||
val replaceWith: ReplaceWith = ReplaceWith(""))
|
||||
|
||||
annotation class Ann(val arg1: KClass<*>, val arg2: KClass<out Any>)
|
||||
|
||||
|
||||
@Anno class F: Runnable {
|
||||
@Anno("f") fun f(@Anno p: String) {}
|
||||
@Anno("p") var prop = "x"
|
||||
}
|
||||
|
||||
|
||||
class Foo @Anno constructor(dependency: MyDependency) {
|
||||
var x: String? = null
|
||||
@Anno set
|
||||
|
||||
@Anno
|
||||
fun String.f4() {}
|
||||
}
|
||||
|
||||
@Ann(String::class, Int::class) class MyClass
|
||||
|
||||
class Example(@field:Ann val foo: String, // annotate Java field
|
||||
@get:Ann val bar: String, // annotate Java getter
|
||||
@param:Ann val quux: String) // annotate Java constructor parameter
|
||||
|
||||
class CtorAnnotations(@Anno val x: String, @param:Anno val y: String, val z: String)
|
||||
|
||||
// COMPILATION_ERRORS
|
||||
@@ -0,0 +1,60 @@
|
||||
public class Open /* pkg.Open*/ {
|
||||
public Open();// .ctor()
|
||||
|
||||
|
||||
|
||||
|
||||
class Private ...
|
||||
|
||||
class Private2 ...
|
||||
|
||||
class StaticInternal ...
|
||||
|
||||
}
|
||||
|
||||
private static final class Private /* pkg.Open.Private*/ extends pkg.Open {
|
||||
public Private();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
protected final class Private2 /* pkg.Open.Private2*/ {
|
||||
public Private2();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public static final class StaticInternal /* pkg.Open.StaticInternal*/ {
|
||||
public StaticInternal();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class OuterInternal /* pkg.OuterInternal*/ {
|
||||
public OuterInternal();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
final class TopLevelPrivate /* pkg.TopLevelPrivate*/ {
|
||||
public TopLevelPrivate();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public abstract class Season /* pkg.Season*/ {
|
||||
protected Season();// .ctor()
|
||||
|
||||
|
||||
class Nested ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Nested /* pkg.Season.Nested*/ extends pkg.Season {
|
||||
public Nested();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public abstract class SealedWithArgs /* pkg.SealedWithArgs*/ {
|
||||
private final int a;
|
||||
|
||||
protected SealedWithArgs(int);// .ctor(int)
|
||||
|
||||
public final int getA();// getA()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
package pkg
|
||||
|
||||
open class Open {
|
||||
private class Private: Open() {}
|
||||
protected inner class Private2 {}
|
||||
internal class StaticInternal {}
|
||||
}
|
||||
internal class OuterInternal {}
|
||||
private class TopLevelPrivate {}
|
||||
|
||||
sealed class Season {
|
||||
class Nested: Season()
|
||||
}
|
||||
|
||||
sealed class SealedWithArgs(val a: Int)
|
||||
|
||||
// FIR_COMPARISON
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
public abstract class Season /* pkg.Season*/ {
|
||||
private Season();// .ctor()
|
||||
|
||||
|
||||
class Nested ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Nested /* pkg.Season.Nested*/ extends pkg.Season {
|
||||
public Nested();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
public final class TestConstructor /* TestConstructor*/ {
|
||||
private TestConstructor(int);// .ctor(int)
|
||||
|
||||
}
|
||||
|
||||
public final class AAA /* AAA*/ {
|
||||
public /* vararg */ AAA(@org.jetbrains.annotations.NotNull() int..., @org.jetbrains.annotations.NotNull() kotlin.jvm.functions.Function0<kotlin.Unit>);// .ctor(int[], kotlin.jvm.functions.Function0<kotlin.Unit>)
|
||||
|
||||
}
|
||||
|
||||
public final class B /* B*/ {
|
||||
}
|
||||
|
||||
public final class Outer /* Outer*/ {
|
||||
public Outer();// .ctor()
|
||||
|
||||
|
||||
|
||||
class Inner ...
|
||||
|
||||
class Nested ...
|
||||
|
||||
}
|
||||
|
||||
public final class Inner /* Outer.Inner*/ {
|
||||
public Inner(int, @org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(int, java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public static final class Nested /* Outer.Nested*/ {
|
||||
public Nested();// .ctor()
|
||||
|
||||
public Nested(int, @org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(int, java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public abstract class A /* A*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final java.lang.String x = null /* initializer type: null */;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getX();// getX()
|
||||
|
||||
protected A(@org.jetbrains.annotations.Nullable() java.lang.String);// .ctor(java.lang.String)
|
||||
|
||||
|
||||
class C ...
|
||||
|
||||
}
|
||||
|
||||
public static final class C /* A.C*/ extends A {
|
||||
public C();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class ClassWithPrivateCtor /* ClassWithPrivateCtor*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.util.Set<java.lang.Integer> property;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.Set<java.lang.Integer> getProperty();// getProperty()
|
||||
|
||||
private ClassWithPrivateCtor(java.util.Set<java.lang.Integer>);// .ctor(java.util.Set<java.lang.Integer>)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
public final class TestConstructor /* TestConstructor*/ {
|
||||
private TestConstructor(int);// .ctor(int)
|
||||
|
||||
}
|
||||
|
||||
public final class A /* A*/ {
|
||||
public A(@org.jetbrains.annotations.NotNull() int[], @org.jetbrains.annotations.NotNull() kotlin.jvm.functions.Function0<kotlin.Unit>);// .ctor(int[], kotlin.jvm.functions.Function0<kotlin.Unit>)
|
||||
|
||||
}
|
||||
|
||||
public final class B /* B*/ {
|
||||
}
|
||||
|
||||
public final class Outer /* Outer*/ {
|
||||
public Outer();// .ctor()
|
||||
|
||||
|
||||
|
||||
class Inner ...
|
||||
|
||||
class Nested ...
|
||||
|
||||
}
|
||||
|
||||
public final class Inner /* Outer.Inner*/ {
|
||||
public Inner(int, @org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(int, java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public static final class Nested /* Outer.Nested*/ {
|
||||
public Nested();// .ctor()
|
||||
|
||||
public Nested(int, @org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(int, java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public abstract class A /* A*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final java.lang.String x;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getX();// getX()
|
||||
|
||||
private A(@org.jetbrains.annotations.Nullable() java.lang.String);// .ctor(java.lang.String)
|
||||
|
||||
|
||||
class C ...
|
||||
|
||||
}
|
||||
|
||||
public static final class C /* A.C*/ extends A {
|
||||
public C();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
class TestConstructor private constructor(p: Int = 1)
|
||||
class AAA(vararg a: Int, f: () -> Unit) {}
|
||||
|
||||
class B {
|
||||
@Deprecated("", level = DeprecationLevel.HIDDEN)
|
||||
constructor()
|
||||
}
|
||||
|
||||
class Outer {
|
||||
inner class Inner(x: Int = 1, y: String = "")
|
||||
class Nested(x: Int = 1, y: String = "")
|
||||
}
|
||||
|
||||
sealed class A(val x: String? = null) {
|
||||
class C : A()
|
||||
}
|
||||
|
||||
class ClassWithPrivateCtor private constructor(
|
||||
public val property: Set<Int>
|
||||
)
|
||||
@@ -0,0 +1,10 @@
|
||||
public final class ClassWithPrivateCtor /* ClassWithPrivateCtor*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.util.Set<java.lang.Integer> property;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.Set<java.lang.Integer> getProperty();// getProperty()
|
||||
|
||||
private ClassWithPrivateCtor(java.util.Set<java.lang.Integer>);// .ctor(java.util.Set<java.lang.Integer>)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
public final class Foo /* Foo*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.Object doSomething(@org.jetbrains.annotations.NotNull() Foo, @org.jetbrains.annotations.NotNull() kotlin.coroutines.Continuation<? super Bar>);// doSomething(Foo, kotlin.coroutines.Continuation<? super Bar>)
|
||||
|
||||
public Foo();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Boo /* Boo*/ {
|
||||
private final java.lang.Object doSomething(Foo, kotlin.coroutines.Continuation<? super Bar>);// doSomething(Foo, kotlin.coroutines.Continuation<? super Bar>)
|
||||
|
||||
public Boo();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Bar /* Bar*/ {
|
||||
public Bar();// .ctor()
|
||||
|
||||
public final <T> void async(@org.jetbrains.annotations.NotNull() kotlin.jvm.functions.Function1<? super kotlin.coroutines.Continuation<? super T>, ? extends java.lang.Object>);// <T> async(kotlin.jvm.functions.Function1<? super kotlin.coroutines.Continuation<? super T>, ? extends java.lang.Object>)
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Base /* Base*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.Object foo(@org.jetbrains.annotations.NotNull() kotlin.coroutines.Continuation<? super kotlin.Unit>);// foo(kotlin.coroutines.Continuation<? super kotlin.Unit>)
|
||||
|
||||
}
|
||||
|
||||
public final class Derived /* Derived*/ implements Base {
|
||||
@java.lang.Override()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public java.lang.Object foo(@org.jetbrains.annotations.NotNull() kotlin.coroutines.Continuation<? super kotlin.Unit>);// foo(kotlin.coroutines.Continuation<? super kotlin.Unit>)
|
||||
|
||||
public Derived();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
public final class Foo /* Foo*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.Object doSomething(@org.jetbrains.annotations.NotNull() Foo, @org.jetbrains.annotations.NotNull() kotlin.coroutines.Continuation<? super Bar>);// doSomething(Foo, kotlin.coroutines.Continuation<? super Bar>)
|
||||
|
||||
public Foo();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Boo /* Boo*/ {
|
||||
private final java.lang.Object doSomething(Foo, kotlin.coroutines.Continuation<? super Bar>);// doSomething(Foo, kotlin.coroutines.Continuation<? super Bar>)
|
||||
|
||||
public Boo();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Bar /* Bar*/ {
|
||||
public Bar();// .ctor()
|
||||
|
||||
public final <T> void async(@org.jetbrains.annotations.NotNull() kotlin.jvm.functions.Function1<? super kotlin.coroutines.Continuation<? super T>, ? extends java.lang.Object>);// <T> async(kotlin.jvm.functions.Function1<? super kotlin.coroutines.Continuation<? super T>, ? extends java.lang.Object>)
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Base /* Base*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.Object foo(@org.jetbrains.annotations.NotNull() kotlin.coroutines.Continuation<? super kotlin.Unit>);// foo(kotlin.coroutines.Continuation<? super kotlin.Unit>)
|
||||
|
||||
}
|
||||
|
||||
public final class Derived /* Derived*/ implements Base {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public java.lang.Object foo(@org.jetbrains.annotations.NotNull() kotlin.coroutines.Continuation<? super kotlin.Unit>);// foo(kotlin.coroutines.Continuation<? super kotlin.Unit>)
|
||||
|
||||
public Derived();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
//RELEASE_COROUTINE_NEEDED
|
||||
//CHECK_BY_JAVA_FILE
|
||||
class Foo {
|
||||
suspend fun doSomething(foo: Foo): Bar { TODO() }
|
||||
}
|
||||
|
||||
class Boo {
|
||||
private suspend fun doSomething(foo: Foo): Bar { TODO() }
|
||||
}
|
||||
|
||||
class Bar {
|
||||
fun <T> async(block: suspend () -> T) {}
|
||||
}
|
||||
|
||||
interface Base {
|
||||
suspend fun foo()
|
||||
}
|
||||
|
||||
class Derived: Base {
|
||||
override suspend fun foo() { }
|
||||
}
|
||||
|
||||
// WITH_STDLIB
|
||||
@@ -0,0 +1,5 @@
|
||||
public abstract interface Base /* Base*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.Object foo(@org.jetbrains.annotations.NotNull() kotlin.coroutines.Continuation<? super kotlin.Unit>);// foo(kotlin.coroutines.Continuation<? super kotlin.Unit>)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
public final class User /* User*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String name;
|
||||
|
||||
private final int age;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final User copy(@org.jetbrains.annotations.NotNull() java.lang.String, int);// copy(java.lang.String, int)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String component1();// component1()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getName();// getName()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.String toString();// toString()
|
||||
|
||||
public User();// .ctor()
|
||||
|
||||
public User(@org.jetbrains.annotations.NotNull() java.lang.String, int);// .ctor(java.lang.String, int)
|
||||
|
||||
public boolean equals(@org.jetbrains.annotations.Nullable() java.lang.Object);// equals(java.lang.Object)
|
||||
|
||||
public final int component2();// component2()
|
||||
|
||||
public final int getAge();// getAge()
|
||||
|
||||
public int hashCode();// hashCode()
|
||||
|
||||
}
|
||||
|
||||
public final class Person /* Person*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String name;
|
||||
|
||||
private int age;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Person copy(@org.jetbrains.annotations.NotNull() java.lang.String);// copy(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String component1();// component1()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getName();// getName()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.String toString();// toString()
|
||||
|
||||
public Person(@org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String)
|
||||
|
||||
public boolean equals(@org.jetbrains.annotations.Nullable() java.lang.Object);// equals(java.lang.Object)
|
||||
|
||||
public final int getAge();// getAge()
|
||||
|
||||
public final void setAge(int);// setAge(int)
|
||||
|
||||
public int hashCode();// hashCode()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// IGNORE_FIR
|
||||
// Ignored due to KT-53573
|
||||
data class User(val name: String = "", val age: Int = 0)
|
||||
|
||||
data class Person(val name: String) {
|
||||
var age: Int = 0
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
public final class Person /* Person*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String name;
|
||||
|
||||
private int age;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Person copy(@org.jetbrains.annotations.NotNull() java.lang.String);// copy(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String component1();// component1()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getName();// getName()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.String toString();// toString()
|
||||
|
||||
public Person(@org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String)
|
||||
|
||||
public boolean equals(@org.jetbrains.annotations.Nullable() java.lang.Object);// equals(java.lang.Object)
|
||||
|
||||
public final int getAge();// getAge()
|
||||
|
||||
public final void setAge(int);// setAge(int)
|
||||
|
||||
public int hashCode();// hashCode()
|
||||
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
public abstract interface KtInterface /* KtInterface*/ {
|
||||
public abstract void defaultFun();// defaultFun()
|
||||
|
||||
public abstract void withoutBody();// withoutBody()
|
||||
|
||||
|
||||
class DefaultImpls ...
|
||||
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
public abstract interface KtInterface /* KtInterface*/ {
|
||||
public abstract void defaultFun();// defaultFun()
|
||||
|
||||
public abstract void withoutBody();// withoutBody()
|
||||
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// CHECK_BY_JAVA_FILE
|
||||
// COMPILER_ARGUMENTS: -Xjvm-default=all
|
||||
|
||||
interface KtInterface {
|
||||
fun defaultFun() {
|
||||
println("default")
|
||||
}
|
||||
|
||||
fun withoutBody()
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
public abstract interface KtInterface /* KtInterface*/ {
|
||||
public abstract void defaultFun();// defaultFun()
|
||||
|
||||
public abstract void withoutBody();// withoutBody()
|
||||
|
||||
|
||||
class DefaultImpls ...
|
||||
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// CHECK_BY_JAVA_FILE
|
||||
// COMPILER_ARGUMENTS: -Xjvm-default=all-compatibility
|
||||
|
||||
interface KtInterface {
|
||||
fun defaultFun() {
|
||||
println("default")
|
||||
}
|
||||
|
||||
fun withoutBody()
|
||||
}
|
||||
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface SimpleAnn /* SimpleAnn*/ {
|
||||
public abstract java.lang.String value();// value()
|
||||
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Ann /* Ann*/ {
|
||||
public abstract SimpleAnn[] t();// t()
|
||||
|
||||
public abstract int x();// x()
|
||||
|
||||
public abstract java.lang.Class<?> z();// z()
|
||||
|
||||
public abstract java.lang.Class<?>[] e();// e()
|
||||
|
||||
public abstract java.lang.String y();// y()
|
||||
|
||||
public abstract kotlin.DeprecationLevel depr();// depr()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Base /* Base*/ {
|
||||
@Ann(x = 1L, y = "134", z = java.lang.String.class, e = {int.class, double.class}, depr = kotlin.DeprecationLevel.WARNING, t = {SimpleAnn("243"), SimpleAnn("4324")})
|
||||
public abstract void foo(@Ann(x = 2L, y = "324", z = Ann.class, e = {byte.class, Base.class}, depr = kotlin.DeprecationLevel.WARNING, t = {SimpleAnn("687"), SimpleAnn("78")}) @org.jetbrains.annotations.NotNull() java.lang.String);// foo(java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public final class Derived /* Derived*/ implements Base {
|
||||
@Ann(x = 1L, y = "134", z = java.lang.String.class, e = {int.class, double.class}, depr = kotlin.DeprecationLevel.WARNING, t = {SimpleAnn("243"), SimpleAnn("4324")})
|
||||
@java.lang.Override()
|
||||
public void foo(@Ann(x = 2L, y = "324", z = Ann.class, e = {byte.class, Base.class}, depr = kotlin.DeprecationLevel.WARNING, t = {SimpleAnn("687"), SimpleAnn("78")}) @org.jetbrains.annotations.NotNull() java.lang.String);// foo(java.lang.String)
|
||||
|
||||
public Derived(@org.jetbrains.annotations.NotNull() Base);// .ctor(Base)
|
||||
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface SimpleAnn /* SimpleAnn*/ {
|
||||
public abstract java.lang.String value();// value()
|
||||
|
||||
}
|
||||
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Ann /* Ann*/ {
|
||||
public abstract SimpleAnn[] t();// t()
|
||||
|
||||
public abstract int x();// x()
|
||||
|
||||
public abstract java.lang.Class<?> z();// z()
|
||||
|
||||
public abstract java.lang.Class<?>[] e();// e()
|
||||
|
||||
public abstract java.lang.String y();// y()
|
||||
|
||||
public abstract kotlin.DeprecationLevel depr();// depr()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Base /* Base*/ {
|
||||
@Ann(x = 1, y = "134", z = kotlin.String.class, e = {kotlin.Int.class, kotlin.Double.class}, depr = kotlin.DeprecationLevel.WARNING, t = {@SimpleAnn(value = "243"), @SimpleAnn(value = "4324")})
|
||||
public abstract void foo(@Ann(x = 2, y = "324", z = Ann.class, e = {kotlin.Byte.class, Base.class}, depr = kotlin.DeprecationLevel.WARNING, t = {@SimpleAnn(value = "687"), @SimpleAnn(value = "78")}) @org.jetbrains.annotations.NotNull() java.lang.String);// foo(java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public final class Derived /* Derived*/ implements Base {
|
||||
@Ann(x = 1, y = "134", z = java.lang.String.class, e = {int.class, double.class}, depr = kotlin.DeprecationLevel.WARNING, t = {@SimpleAnn(value="243"), @SimpleAnn(value="4324")})
|
||||
public void foo(@Ann(x = 2, y = "324", z = Ann.class, e = {byte.class, Base.class}, depr = kotlin.DeprecationLevel.WARNING, t = {@SimpleAnn(value="687"), @SimpleAnn(value="78")}) @org.jetbrains.annotations.NotNull() java.lang.String);// foo(java.lang.String)
|
||||
|
||||
public Derived(@org.jetbrains.annotations.NotNull() Base);// .ctor(Base)
|
||||
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// CHECK_BY_JAVA_FILE
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
annotation class SimpleAnn(val value: String)
|
||||
|
||||
annotation class Ann(
|
||||
val x: Int,
|
||||
val y: String,
|
||||
val z: KClass<*>,
|
||||
val e: Array<KClass<*>>,
|
||||
val depr: DeprecationLevel,
|
||||
vararg val t: SimpleAnn
|
||||
)
|
||||
|
||||
interface Base {
|
||||
@Ann(1, "134", String::class, arrayOf(Int::class, Double::class), DeprecationLevel.WARNING, SimpleAnn("243"), SimpleAnn("4324"))
|
||||
fun foo(
|
||||
@Ann(2, "324", Ann::class, arrayOf(Byte::class, Base::class), DeprecationLevel.WARNING, SimpleAnn("687"), SimpleAnn("78")) x: String
|
||||
)
|
||||
}
|
||||
|
||||
class Derived(b: Base) : Base by b {
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface SimpleAnn /* SimpleAnn*/ {
|
||||
public abstract java.lang.String value();// value()
|
||||
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
public abstract interface Base /* Base*/ {
|
||||
public abstract int foo(@org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.Nullable() java.lang.Object);// foo(java.lang.String, java.lang.Object)
|
||||
|
||||
public abstract int getX();// getX()
|
||||
|
||||
public abstract int getY();// getY()
|
||||
|
||||
public abstract void printMessage();// printMessage()
|
||||
|
||||
public abstract void printMessageLine();// printMessageLine()
|
||||
|
||||
public abstract void setY(int);// setY(int)
|
||||
|
||||
}
|
||||
|
||||
public final class BaseImpl /* BaseImpl*/ implements Base {
|
||||
private final int x;
|
||||
|
||||
@java.lang.Override()
|
||||
public void printMessage();// printMessage()
|
||||
|
||||
@java.lang.Override()
|
||||
public void printMessageLine();// printMessageLine()
|
||||
|
||||
public BaseImpl(int);// .ctor(int)
|
||||
|
||||
public final int getX();// getX()
|
||||
|
||||
}
|
||||
|
||||
public final class Derived /* Derived*/ implements Base {
|
||||
@java.lang.Override()
|
||||
public int foo(@org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.Nullable() java.lang.Object);// foo(java.lang.String, java.lang.Object)
|
||||
|
||||
@java.lang.Override()
|
||||
public void printMessage();// printMessage()
|
||||
|
||||
@java.lang.Override()
|
||||
public void printMessageLine();// printMessageLine()
|
||||
|
||||
public Derived(@org.jetbrains.annotations.NotNull() Base);// .ctor(Base)
|
||||
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
public abstract interface Base /* Base*/ {
|
||||
public abstract int foo(@org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.Nullable() java.lang.Object);// foo(java.lang.String, java.lang.Object)
|
||||
|
||||
public abstract int getX();// getX()
|
||||
|
||||
public abstract int getY();// getY()
|
||||
|
||||
public abstract void printMessage();// printMessage()
|
||||
|
||||
public abstract void printMessageLine();// printMessageLine()
|
||||
|
||||
public abstract void setY(int);// setY(int)
|
||||
|
||||
}
|
||||
|
||||
public final class BaseImpl /* BaseImpl*/ implements Base {
|
||||
private final int x;
|
||||
|
||||
public BaseImpl(int);// .ctor(int)
|
||||
|
||||
public final int getX();// getX()
|
||||
|
||||
public void printMessage();// printMessage()
|
||||
|
||||
public void printMessageLine();// printMessageLine()
|
||||
|
||||
}
|
||||
|
||||
public final class Derived /* Derived*/ implements Base {
|
||||
public Derived(@org.jetbrains.annotations.NotNull() Base);// .ctor(Base)
|
||||
|
||||
public int foo(@org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.Nullable() java.lang.Object);// foo(java.lang.String, java.lang.Object)
|
||||
|
||||
public int getX();// getX()
|
||||
|
||||
public int getY();// getY()
|
||||
|
||||
public void printMessage();// printMessage()
|
||||
|
||||
public void printMessageLine();// printMessageLine()
|
||||
|
||||
public void setY(int);// setY(int)
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
|
||||
interface Base {
|
||||
fun printMessage()
|
||||
fun printMessageLine()
|
||||
|
||||
val x: Int
|
||||
var y: Int
|
||||
|
||||
fun String.foo(y: Any?): Int
|
||||
}
|
||||
|
||||
class BaseImpl(val x: Int) : Base {
|
||||
override fun printMessage() { print(x) }
|
||||
override fun printMessageLine() { println(x) }
|
||||
}
|
||||
|
||||
class Derived(b: Base) : Base by b {
|
||||
override fun printMessage() { print("abc") }
|
||||
}
|
||||
// COMPILATION_ERRORS
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
public final class Foo /* c.b.a.Foo*/ {
|
||||
public Foo();// .ctor()
|
||||
|
||||
public final void bar();// bar()
|
||||
|
||||
}
|
||||
|
||||
public static final class A$B /* null*/ {
|
||||
public A$B();// .ctor()
|
||||
|
||||
|
||||
|
||||
class $$$$$$$ ...
|
||||
|
||||
class C$D ...
|
||||
|
||||
}
|
||||
|
||||
public final class C$D /* null*/ {
|
||||
public C$D();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class $$$$$$$ /* null*/ {
|
||||
public $$$$$$$();// .ctor()
|
||||
|
||||
|
||||
class G$G$ ...
|
||||
|
||||
}
|
||||
|
||||
public final class G$G$ /* null*/ {
|
||||
public G$G$();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// c.b.a.Foo$bar$A$B
|
||||
// CHECK_BY_JAVA_FILE
|
||||
package c.b.a
|
||||
|
||||
class Foo {
|
||||
fun bar() {
|
||||
class `A$B` {
|
||||
inner class `C$D`
|
||||
|
||||
inner class `$$$$$$$` {
|
||||
inner class `G$G$`
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// FIR_COMPARISON
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public final class Foo /* c.b.a.Foo*/ {
|
||||
public Foo();// .ctor()
|
||||
|
||||
public final void bar();// bar()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Some /* Some*/ {
|
||||
}
|
||||
|
||||
public enum Direction /* Direction*/ {
|
||||
@Some() NORTH,
|
||||
SOUTH,
|
||||
WEST,
|
||||
EAST;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static Direction valueOf(@org.jetbrains.annotations.NotNull() java.lang.String) throws java.lang.IllegalArgumentException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static Direction[] values();// values()
|
||||
|
||||
private Direction();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public enum Color /* Color*/ {
|
||||
RED,
|
||||
GREEN,
|
||||
BLUE;
|
||||
|
||||
private final int rgb;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static Color valueOf(@org.jetbrains.annotations.NotNull() java.lang.String) throws java.lang.IllegalArgumentException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static Color[] values();// values()
|
||||
|
||||
private Color(int);// .ctor(int)
|
||||
|
||||
private Color(java.lang.String);// .ctor(java.lang.String)
|
||||
|
||||
public final int getRgb();// getRgb()
|
||||
|
||||
}
|
||||
|
||||
public enum ProtocolState /* ProtocolState*/ {
|
||||
WAITING {
|
||||
WAITING();// .ctor()
|
||||
|
||||
@java.lang.Override()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public ProtocolState signal();// signal()
|
||||
|
||||
},
|
||||
TALKING {
|
||||
TALKING();// .ctor()
|
||||
|
||||
@java.lang.Override()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public ProtocolState signal();// signal()
|
||||
|
||||
};
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract ProtocolState signal();// signal()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static ProtocolState valueOf(@org.jetbrains.annotations.NotNull() java.lang.String) throws java.lang.IllegalArgumentException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static ProtocolState[] values();// values()
|
||||
|
||||
private ProtocolState();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public static final class WAITING /* ProtocolState.WAITING*/ extends ProtocolState {
|
||||
WAITING();// .ctor()
|
||||
|
||||
@java.lang.Override()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public ProtocolState signal();// signal()
|
||||
|
||||
}
|
||||
|
||||
public static final class TALKING /* ProtocolState.TALKING*/ extends ProtocolState {
|
||||
TALKING();// .ctor()
|
||||
|
||||
@java.lang.Override()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public ProtocolState signal();// signal()
|
||||
|
||||
}
|
||||
|
||||
public enum IntArithmetics /* IntArithmetics*/ {
|
||||
PLUS {
|
||||
PLUS();// .ctor()
|
||||
|
||||
public int apply(int, int);// apply(int, int)
|
||||
|
||||
},
|
||||
TIMES {
|
||||
TIMES();// .ctor()
|
||||
|
||||
public int apply(int, int);// apply(int, int)
|
||||
|
||||
};
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public IntArithmetics applyAsInt(int, int);// applyAsInt(int, int)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static IntArithmetics valueOf(@org.jetbrains.annotations.NotNull() java.lang.String) throws java.lang.IllegalArgumentException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static IntArithmetics[] values();// values()
|
||||
|
||||
private IntArithmetics();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public static final class PLUS /* IntArithmetics.PLUS*/ extends IntArithmetics {
|
||||
PLUS();// .ctor()
|
||||
|
||||
public int apply(int, int);// apply(int, int)
|
||||
|
||||
}
|
||||
|
||||
public static final class TIMES /* IntArithmetics.TIMES*/ extends IntArithmetics {
|
||||
TIMES();// .ctor()
|
||||
|
||||
public int apply(int, int);// apply(int, int)
|
||||
|
||||
}
|
||||
|
||||
public final class C /* C*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final Direction enumConst;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final Direction getEnumConst();// getEnumConst()
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Some /* Some*/ {
|
||||
}
|
||||
|
||||
public enum Direction /* Direction*/ {
|
||||
@Some() NORTH,
|
||||
SOUTH,
|
||||
WEST,
|
||||
EAST;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static Direction valueOf(java.lang.String) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static Direction[] values();// values()
|
||||
|
||||
private Direction();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public enum Color /* Color*/ {
|
||||
RED,
|
||||
GREEN,
|
||||
BLUE;
|
||||
|
||||
private final int rgb;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static Color valueOf(java.lang.String) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static Color[] values();// values()
|
||||
|
||||
private Color(@org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String)
|
||||
|
||||
private Color(int);// .ctor(int)
|
||||
|
||||
public final int getRgb();// getRgb()
|
||||
|
||||
}
|
||||
|
||||
public enum ProtocolState /* ProtocolState*/ {
|
||||
WAITING {
|
||||
WAITING();// .ctor()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public ProtocolState signal();// signal()
|
||||
|
||||
},
|
||||
TALKING {
|
||||
TALKING();// .ctor()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public ProtocolState signal();// signal()
|
||||
|
||||
};
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract ProtocolState signal();// signal()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static ProtocolState valueOf(java.lang.String) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static ProtocolState[] values();// values()
|
||||
|
||||
private ProtocolState();// .ctor()
|
||||
|
||||
|
||||
|
||||
class TALKING ...
|
||||
|
||||
class WAITING ...
|
||||
|
||||
}
|
||||
|
||||
public static final class WAITING /* ProtocolState.WAITING*/ extends ProtocolState {
|
||||
WAITING();// .ctor()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public ProtocolState signal();// signal()
|
||||
|
||||
}
|
||||
|
||||
public static final class TALKING /* ProtocolState.TALKING*/ extends ProtocolState {
|
||||
TALKING();// .ctor()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public ProtocolState signal();// signal()
|
||||
|
||||
}
|
||||
|
||||
public enum IntArithmetics /* IntArithmetics*/ implements java.util.function.BinaryOperator<java.lang.Integer>, java.util.function.IntBinaryOperator {
|
||||
PLUS {
|
||||
PLUS();// .ctor()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.Integer apply(int, int);// apply(int, int)
|
||||
|
||||
},
|
||||
TIMES {
|
||||
TIMES();// .ctor()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.Integer apply(int, int);// apply(int, int)
|
||||
|
||||
};
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static IntArithmetics valueOf(java.lang.String) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static IntArithmetics[] values();// values()
|
||||
|
||||
private IntArithmetics();// .ctor()
|
||||
|
||||
public int applyAsInt(int, int);// applyAsInt(int, int)
|
||||
|
||||
|
||||
|
||||
class PLUS ...
|
||||
|
||||
class TIMES ...
|
||||
|
||||
}
|
||||
|
||||
public static final class PLUS /* IntArithmetics.PLUS*/ extends IntArithmetics {
|
||||
PLUS();// .ctor()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.Integer apply(int, int);// apply(int, int)
|
||||
|
||||
}
|
||||
|
||||
public static final class TIMES /* IntArithmetics.TIMES*/ extends IntArithmetics {
|
||||
TIMES();// .ctor()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.Integer apply(int, int);// apply(int, int)
|
||||
|
||||
}
|
||||
|
||||
public final class C /* C*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final Direction enumConst;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final Direction getEnumConst();// getEnumConst()
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
// IGNORE_FIR
|
||||
// Ignored due to KT-53573
|
||||
// CHECK_BY_JAVA_FILE
|
||||
|
||||
import java.util.function.*
|
||||
|
||||
annotation class Some
|
||||
|
||||
enum class Direction {
|
||||
@Some NORTH, SOUTH, WEST, EAST
|
||||
}
|
||||
|
||||
enum class Color(val rgb: Int = 5) {
|
||||
RED(0xFF0000),
|
||||
GREEN(0x00FF00),
|
||||
BLUE("0x0000FF");
|
||||
|
||||
constructor(y: String) : this(y.toInt())
|
||||
}
|
||||
|
||||
enum class ProtocolState {
|
||||
WAITING {
|
||||
override fun signal() = TALKING
|
||||
},
|
||||
|
||||
TALKING {
|
||||
override fun signal() = WAITING
|
||||
};
|
||||
|
||||
abstract fun signal(): ProtocolState
|
||||
}
|
||||
|
||||
enum class IntArithmetics : BinaryOperator<Int>, IntBinaryOperator {
|
||||
PLUS {
|
||||
override fun apply(t: Int, u: Int): Int = t + u
|
||||
},
|
||||
TIMES {
|
||||
override fun apply(t: Int, u: Int): Int = t * u
|
||||
};
|
||||
|
||||
override fun applyAsInt(t: Int, u: Int) = apply(t, u)
|
||||
}
|
||||
|
||||
class C {
|
||||
val enumConst: Direction? = Direction.EAST
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
public abstract enum ProtocolState /* ProtocolState*/ {
|
||||
WAITING,
|
||||
TALKING;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract ProtocolState signal();// signal()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static ProtocolState valueOf(@org.jetbrains.annotations.NotNull() java.lang.String) throws java.lang.IllegalArgumentException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static ProtocolState[] values();// values()
|
||||
|
||||
private ProtocolState();// .ctor()
|
||||
|
||||
|
||||
|
||||
class TALKING ...
|
||||
|
||||
class WAITING ...
|
||||
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
public abstract class C /* C*/<T> {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private java.util.List<java.lang.CharSequence> constructorParam;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.util.HashSet<java.lang.String> sHashSetProp;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.util.List<java.lang.CharSequence> csListProp;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.util.List<java.lang.String> sListProp;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.util.Set<java.lang.String> sMutableSetProp;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.util.Set<java.lang.String> sSetProp;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.util.Collection<java.util.Collection<java.lang.CharSequence>> nested(@org.jetbrains.annotations.NotNull() java.util.List<? extends java.util.List<? extends java.lang.CharSequence>>);// nested(java.util.List<? extends java.util.List<? extends java.lang.CharSequence>>)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.util.List<java.lang.CharSequence> listCS(@org.jetbrains.annotations.NotNull() java.util.List<? extends java.lang.CharSequence>);// listCS(java.util.List<? extends java.lang.CharSequence>)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.util.List<java.lang.String> listS(@org.jetbrains.annotations.NotNull() java.util.List<java.lang.String>);// listS(java.util.List<java.lang.String>)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.util.Set<java.lang.CharSequence> mutables(@org.jetbrains.annotations.NotNull() java.util.Collection<? super java.lang.Number>, @org.jetbrains.annotations.NotNull() java.util.List<? extends C<?>>);// mutables(java.util.Collection<? super java.lang.Number>, java.util.List<? extends C<?>>)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.List<java.lang.CharSequence> getConstructorParam();// getConstructorParam()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final <T extends java.lang.Comparable<? super T>> T max(@org.jetbrains.annotations.Nullable() java.util.Collection<? extends T>);// <T extends java.lang.Comparable<? super T>> max(java.util.Collection<? extends T>)
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.HashSet<java.lang.String> getSHashSetProp();// getSHashSetProp()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.List<java.lang.CharSequence> getCsListProp();// getCsListProp()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.List<java.lang.String> getSListProp();// getSListProp()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.Set<java.lang.String> getSMutableSetProp();// getSMutableSetProp()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.Set<java.lang.String> getSSetProp();// getSSetProp()
|
||||
|
||||
public C(@org.jetbrains.annotations.NotNull() java.util.List<? extends java.lang.CharSequence>);// .ctor(java.util.List<? extends java.lang.CharSequence>)
|
||||
|
||||
public final <Q extends T> Q getW(@org.jetbrains.annotations.NotNull() Q);// <Q extends T> getW(Q)
|
||||
|
||||
public final <V, U extends V> T foo(V, @org.jetbrains.annotations.NotNull() C<V>, @org.jetbrains.annotations.NotNull() kotlin.sequences.Sequence<? extends V>);// <V, U extends V> foo(V, C<V>, kotlin.sequences.Sequence<? extends V>)
|
||||
|
||||
public final void setConstructorParam(@org.jetbrains.annotations.NotNull() java.util.List<? extends java.lang.CharSequence>);// setConstructorParam(java.util.List<? extends java.lang.CharSequence>)
|
||||
|
||||
public final void setCsListProp(@org.jetbrains.annotations.Nullable() java.util.List<? extends java.lang.CharSequence>);// setCsListProp(java.util.List<? extends java.lang.CharSequence>)
|
||||
|
||||
public final void setSHashSetProp(@org.jetbrains.annotations.Nullable() java.util.HashSet<java.lang.String>);// setSHashSetProp(java.util.HashSet<java.lang.String>)
|
||||
|
||||
public final void setSListProp(@org.jetbrains.annotations.Nullable() java.util.List<java.lang.String>);// setSListProp(java.util.List<java.lang.String>)
|
||||
|
||||
public final void setSMutableSetProp(@org.jetbrains.annotations.Nullable() java.util.Set<java.lang.String>);// setSMutableSetProp(java.util.Set<java.lang.String>)
|
||||
|
||||
public final void setSSetProp(@org.jetbrains.annotations.Nullable() java.util.Set<java.lang.String>);// setSSetProp(java.util.Set<java.lang.String>)
|
||||
|
||||
}
|
||||
|
||||
public class K /* K*/<T extends K<? extends T>> {
|
||||
public K();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Sub /* Sub*/ extends K<K<?>> {
|
||||
public Sub();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
public abstract class C /* C*/<T> {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private java.util.List<? extends java.lang.CharSequence> constructorParam;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.util.HashSet<java.lang.String> sHashSetProp;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.util.List<? extends java.lang.CharSequence> csListProp;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.util.List<java.lang.String> sListProp;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.util.Set<java.lang.String> sMutableSetProp;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.util.Set<java.lang.String> sSetProp;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.util.Collection<java.util.Collection<java.lang.CharSequence>> nested(@org.jetbrains.annotations.NotNull() java.util.List<? extends java.util.List<? extends java.lang.CharSequence>>);// nested(java.util.List<? extends java.util.List<? extends java.lang.CharSequence>>)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.util.List<java.lang.CharSequence> listCS(@org.jetbrains.annotations.NotNull() java.util.List<? extends java.lang.CharSequence>);// listCS(java.util.List<? extends java.lang.CharSequence>)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.util.List<java.lang.String> listS(@org.jetbrains.annotations.NotNull() java.util.List<java.lang.String>);// listS(java.util.List<java.lang.String>)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.util.Set<java.lang.CharSequence> mutables(@org.jetbrains.annotations.NotNull() java.util.Collection<? super java.lang.Number>, @org.jetbrains.annotations.NotNull() java.util.List<? extends C<?>>);// mutables(java.util.Collection<? super java.lang.Number>, java.util.List<? extends C<?>>)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.List<java.lang.CharSequence> getConstructorParam();// getConstructorParam()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final <T extends java.lang.Object & java.lang.Comparable<? super T>> T max(@org.jetbrains.annotations.Nullable() java.util.Collection<? extends T>);// <T extends java.lang.Object & java.lang.Comparable<? super T>> max(java.util.Collection<? extends T>)
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.HashSet<java.lang.String> getSHashSetProp();// getSHashSetProp()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.List<java.lang.CharSequence> getCsListProp();// getCsListProp()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.List<java.lang.String> getSListProp();// getSListProp()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.Set<java.lang.String> getSMutableSetProp();// getSMutableSetProp()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.Set<java.lang.String> getSSetProp();// getSSetProp()
|
||||
|
||||
public C(@org.jetbrains.annotations.NotNull() java.util.List<? extends java.lang.CharSequence>);// .ctor(java.util.List<? extends java.lang.CharSequence>)
|
||||
|
||||
public final <Q extends T> Q getW(Q);// <Q extends T> getW(Q)
|
||||
|
||||
public final <V, U extends V> T foo(V, @org.jetbrains.annotations.NotNull() C<V>, @org.jetbrains.annotations.NotNull() kotlin.sequences.Sequence<? extends V>);// <V, U extends V> foo(V, C<V>, kotlin.sequences.Sequence<? extends V>)
|
||||
|
||||
public final void setConstructorParam(@org.jetbrains.annotations.NotNull() java.util.List<? extends java.lang.CharSequence>);// setConstructorParam(java.util.List<? extends java.lang.CharSequence>)
|
||||
|
||||
public final void setCsListProp(@org.jetbrains.annotations.Nullable() java.util.List<? extends java.lang.CharSequence>);// setCsListProp(java.util.List<? extends java.lang.CharSequence>)
|
||||
|
||||
public final void setSHashSetProp(@org.jetbrains.annotations.Nullable() java.util.HashSet<java.lang.String>);// setSHashSetProp(java.util.HashSet<java.lang.String>)
|
||||
|
||||
public final void setSListProp(@org.jetbrains.annotations.Nullable() java.util.List<java.lang.String>);// setSListProp(java.util.List<java.lang.String>)
|
||||
|
||||
public final void setSMutableSetProp(@org.jetbrains.annotations.Nullable() java.util.Set<java.lang.String>);// setSMutableSetProp(java.util.Set<java.lang.String>)
|
||||
|
||||
public final void setSSetProp(@org.jetbrains.annotations.Nullable() java.util.Set<java.lang.String>);// setSSetProp(java.util.Set<java.lang.String>)
|
||||
|
||||
}
|
||||
|
||||
public class K /* K*/<T extends K<? extends T>> {
|
||||
public K();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Sub /* Sub*/ extends K<K<?>> {
|
||||
public Sub();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
|
||||
abstract class C<T>(var constructorParam: List<CharSequence>) {
|
||||
fun foo<V, U : V>(p1: V, p2: C<V>, p4: Sequence<V>): T {}
|
||||
|
||||
inline fun <reified T : Enum<T>> printAllValues() {
|
||||
print(enumValues<T>().joinToString { it.name })
|
||||
}
|
||||
|
||||
val <Q : T> Q.w: Q get() = null!!
|
||||
|
||||
var sListProp: List<String>?
|
||||
var sSetProp: Set<String>?
|
||||
var sMutableSetProp: MutableSet<String>?
|
||||
var sHashSetProp: HashSet<String>?
|
||||
var csListProp: List<CharSequence>?
|
||||
|
||||
abstract fun listCS(l: List<CharSequence>): List<CharSequence>
|
||||
abstract fun listS(l: List<String>): List<String>
|
||||
abstract fun mutables(cin: MutableCollection<in Number>, sOut: MutableList<out C<*>>): MutableSet<CharSequence>
|
||||
abstract fun nested(l: List<List<CharSequence>>): Collection<Collection<CharSequence>>
|
||||
|
||||
fun <T : Any?> max(p0 : Collection<T>?): T? where T : Comparable<T>? {}
|
||||
|
||||
}
|
||||
|
||||
open class K<out T: K<T>> { }
|
||||
class Sub: K<K<*>>()
|
||||
|
||||
// COMPILATION_ERRORS
|
||||
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
public final class MyList /* MyList*/ implements java.util.List<java.lang.String>, kotlin.collections.List<java.lang.String>, kotlin.jvm.internal.markers.KMappedMarker {
|
||||
@java.lang.Override()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.String get(int);// get(int)
|
||||
|
||||
public MyList();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface ASet /* ASet*/<T> extends java.util.Collection<T>, kotlin.collections.MutableCollection<T>, kotlin.jvm.internal.markers.KMutableCollection {
|
||||
}
|
||||
|
||||
public abstract class MySet /* MySet*/<T> implements ASet<T> {
|
||||
public MySet();// .ctor()
|
||||
|
||||
public boolean remove(@org.jetbrains.annotations.NotNull() java.lang.String);// remove(java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public abstract class SmartSet /* SmartSet*/<T> extends kotlin.collections.AbstractMutableSet<T> {
|
||||
@java.lang.Override()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.util.Iterator<T> iterator();// iterator()
|
||||
|
||||
@java.lang.Override()
|
||||
public boolean add(T);// add(T)
|
||||
|
||||
private SmartSet();// .ctor()
|
||||
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
public final class MyList /* MyList*/ implements java.util.List<java.lang.String>, kotlin.collections.List<java.lang.String>, kotlin.jvm.internal.markers.KMappedMarker {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.String get(int);// get(int)
|
||||
|
||||
public MyList();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface ASet /* ASet*/<T> extends java.util.Collection<T>, kotlin.collections.MutableCollection<T>, kotlin.jvm.internal.markers.KMutableCollection {
|
||||
}
|
||||
|
||||
public abstract class MySet /* MySet*/<T> implements ASet<T> {
|
||||
public MySet();// .ctor()
|
||||
|
||||
public boolean remove(@org.jetbrains.annotations.NotNull() java.lang.String);// remove(java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public abstract class SmartSet /* SmartSet*/<T> extends kotlin.collections.AbstractMutableSet<T> {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.util.Iterator<T> iterator();// iterator()
|
||||
|
||||
private SmartSet();// .ctor()
|
||||
|
||||
public boolean add(T);// add(T)
|
||||
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
import java.util.*
|
||||
|
||||
class MyList : List<String> {
|
||||
override operator fun get(index: Int): String {}
|
||||
}
|
||||
|
||||
interface ASet<T> : MutableCollection<T> {}
|
||||
|
||||
abstract class MySet<T> : ASet<T> {
|
||||
override fun remove(elem: String): Boolean {}
|
||||
|
||||
}
|
||||
|
||||
abstract class SmartSet<T> private constructor() : AbstractMutableSet<T>() {
|
||||
override fun iterator(): MutableIterator<T> = unresolved
|
||||
|
||||
override fun add(element: T): Boolean {
|
||||
return true
|
||||
}
|
||||
|
||||
/* Should erasure T but UL classes does not support it in this case
|
||||
override fun contains(element: T): Boolean = true
|
||||
*/
|
||||
}
|
||||
|
||||
// COMPILATION_ERRORS
|
||||
@@ -0,0 +1,10 @@
|
||||
public final class O /* O*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final O INSTANCE;
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void foo();// foo()
|
||||
|
||||
private O();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import kotlin.jvm.JvmStatic as JS
|
||||
|
||||
object O {
|
||||
@JS fun foo() {}
|
||||
}
|
||||
|
||||
// FIR_COMPARISON
|
||||
Vendored
+99
@@ -0,0 +1,99 @@
|
||||
public final class Prop /* Prop*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.Object someProp;
|
||||
|
||||
public Prop();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
final class null /* null*/ {
|
||||
private ();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
final class C /* C*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final kotlin.jvm.functions.Function0<java.lang.Object> initChild;
|
||||
|
||||
private final int y;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final kotlin.jvm.functions.Function0<java.lang.Object> getInitChild();// getInitChild()
|
||||
|
||||
public C(int);// .ctor(int)
|
||||
|
||||
public final int getY();// getY()
|
||||
|
||||
}
|
||||
|
||||
final class null /* null*/ {
|
||||
@java.lang.Override()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.String toString();// toString()
|
||||
|
||||
private ();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class ValidPublicSupertype /* ValidPublicSupertype*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.Runnable x;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.Runnable bar();// bar()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.Runnable getX();// getX()
|
||||
|
||||
public ValidPublicSupertype();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
final class null /* null*/ implements java.lang.Runnable {
|
||||
@java.lang.Override()
|
||||
public void run();// run()
|
||||
|
||||
private ();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
final class null /* null*/ implements java.lang.Runnable {
|
||||
@java.lang.Override()
|
||||
public void run();// run()
|
||||
|
||||
private ();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface I /* I*/ {
|
||||
}
|
||||
|
||||
public final class InvalidPublicSupertype /* InvalidPublicSupertype*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.Runnable x;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.Runnable bar();// bar()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.Runnable getX();// getX()
|
||||
|
||||
public InvalidPublicSupertype();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
final class null /* null*/ implements I, java.lang.Runnable {
|
||||
@java.lang.Override()
|
||||
public void run();// run()
|
||||
|
||||
private ();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
final class null /* null*/ implements I, java.lang.Runnable {
|
||||
@java.lang.Override()
|
||||
public void run();// run()
|
||||
|
||||
private ();// .ctor()
|
||||
|
||||
}
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
public final class Prop /* Prop*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.Object someProp;
|
||||
|
||||
public Prop();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
final class null /* null*/ {
|
||||
private ();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
final class C /* C*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final kotlin.jvm.functions.Function0<java.lang.Object> initChild;
|
||||
|
||||
private final int y;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final kotlin.jvm.functions.Function0<java.lang.Object> getInitChild();// getInitChild()
|
||||
|
||||
public C(int);// .ctor(int)
|
||||
|
||||
public final int getY();// getY()
|
||||
|
||||
}
|
||||
|
||||
final class null /* null*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.String toString();// toString()
|
||||
|
||||
private ();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class ValidPublicSupertype /* ValidPublicSupertype*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.Runnable x;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.Runnable bar();// bar()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.Runnable getX();// getX()
|
||||
|
||||
public ValidPublicSupertype();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
final class null /* null*/ implements java.lang.Runnable {
|
||||
private ();// .ctor()
|
||||
|
||||
public void run();// run()
|
||||
|
||||
}
|
||||
|
||||
final class null /* null*/ implements java.lang.Runnable {
|
||||
private ();// .ctor()
|
||||
|
||||
public void run();// run()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface I /* I*/ {
|
||||
}
|
||||
|
||||
public final class InvalidPublicSupertype /* InvalidPublicSupertype*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.Runnable x;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.Runnable bar();// bar()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.Runnable getX();// getX()
|
||||
|
||||
public InvalidPublicSupertype();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
final class null /* null*/ implements I, java.lang.Runnable {
|
||||
private ();// .ctor()
|
||||
|
||||
public void run();// run()
|
||||
|
||||
}
|
||||
|
||||
final class null /* null*/ implements I, java.lang.Runnable {
|
||||
private ();// .ctor()
|
||||
|
||||
public void run();// run()
|
||||
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
// CHECK_BY_JAVA_FILE
|
||||
class Prop {
|
||||
private val someProp = object { }
|
||||
}
|
||||
|
||||
private class C(val y: Int) {
|
||||
val initChild = { ->
|
||||
object {
|
||||
override fun toString(): String {
|
||||
return "child" + y
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class ValidPublicSupertype {
|
||||
val x = object : Runnable {
|
||||
override fun run() {}
|
||||
}
|
||||
|
||||
fun bar() = object : Runnable {
|
||||
override fun run() {}
|
||||
}
|
||||
}
|
||||
|
||||
interface I
|
||||
class InvalidPublicSupertype {
|
||||
val x = object : Runnable, I {
|
||||
override fun run() {}
|
||||
}
|
||||
|
||||
fun bar() = object : Runnable, I {
|
||||
override fun run() {}
|
||||
}
|
||||
}
|
||||
// COMPILATION_ERRORS
|
||||
@@ -0,0 +1,81 @@
|
||||
public abstract interface Intf /* Intf*/ {
|
||||
public abstract int v();// v()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface IntfWithProp /* IntfWithProp*/ extends Intf {
|
||||
public abstract int getX();// getX()
|
||||
|
||||
}
|
||||
|
||||
public abstract class Base /* Base*/ {
|
||||
private int y = 1 /* initializer type: int */;
|
||||
|
||||
private int z = 1 /* initializer type: int */;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
protected java.lang.Integer v();// v()
|
||||
|
||||
protected int getZ();// getZ()
|
||||
|
||||
protected void setZ(int);// setZ(int)
|
||||
|
||||
public Base(int);// .ctor(int)
|
||||
|
||||
public abstract int abs();// abs()
|
||||
|
||||
public final void nv();// nv()
|
||||
|
||||
public int getX$light_idea_test_case();// getX$light_idea_test_case()
|
||||
|
||||
public int getY();// getY()
|
||||
|
||||
public void setY(int);// setY(int)
|
||||
|
||||
}
|
||||
|
||||
public final class Derived /* Derived*/ extends Base implements IntfWithProp {
|
||||
private final int x = 3 /* initializer type: int */;
|
||||
|
||||
@java.lang.Override()
|
||||
public error.NonExistentClass v();// v()
|
||||
|
||||
@java.lang.Override()
|
||||
public int abs();// abs()
|
||||
|
||||
public Derived(int);// .ctor(int)
|
||||
|
||||
public int getX();// getX()
|
||||
|
||||
}
|
||||
|
||||
public abstract class AnotherDerived /* AnotherDerived*/ extends Base {
|
||||
private final int x;
|
||||
|
||||
private final int y;
|
||||
|
||||
private final int z;
|
||||
|
||||
@java.lang.Override()
|
||||
protected final void v();// v()
|
||||
|
||||
protected int getZ();// getZ()
|
||||
|
||||
public AnotherDerived(int, int, int);// .ctor(int, int, int)
|
||||
|
||||
public abstract int getAbstractProp();// getAbstractProp()
|
||||
|
||||
public abstract void noReturn(@org.jetbrains.annotations.NotNull() java.lang.String);// noReturn(java.lang.String)
|
||||
|
||||
public int getX$light_idea_test_case();// getX$light_idea_test_case()
|
||||
|
||||
public int getY();// getY()
|
||||
|
||||
}
|
||||
|
||||
final class Private /* Private*/ {
|
||||
public Private();// .ctor()
|
||||
|
||||
public boolean getOverridesNothing();// getOverridesNothing()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
public abstract interface Intf /* Intf*/ {
|
||||
public abstract int v();// v()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface IntfWithProp /* IntfWithProp*/ extends Intf {
|
||||
public abstract int getX();// getX()
|
||||
|
||||
}
|
||||
|
||||
public abstract class Base /* Base*/ {
|
||||
private int y;
|
||||
|
||||
private int z;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
protected java.lang.Integer v();// v()
|
||||
|
||||
protected int getZ();// getZ()
|
||||
|
||||
protected void setZ(int);// setZ(int)
|
||||
|
||||
public Base(int);// .ctor(int)
|
||||
|
||||
public abstract int abs();// abs()
|
||||
|
||||
public final void nv();// nv()
|
||||
|
||||
public int getX$light_idea_test_case();// getX$light_idea_test_case()
|
||||
|
||||
public int getY();// getY()
|
||||
|
||||
public void setY(int);// setY(int)
|
||||
|
||||
}
|
||||
|
||||
public final class Derived /* Derived*/ extends Base implements IntfWithProp {
|
||||
private final int x;
|
||||
|
||||
public Derived(int);// .ctor(int)
|
||||
|
||||
public error.NonExistentClass v();// v()
|
||||
|
||||
public int abs();// abs()
|
||||
|
||||
public int getX();// getX()
|
||||
|
||||
}
|
||||
|
||||
public abstract class AnotherDerived /* AnotherDerived*/ extends Base {
|
||||
private final int x;
|
||||
|
||||
private final int y;
|
||||
|
||||
private final int z;
|
||||
|
||||
protected final void v();// v()
|
||||
|
||||
protected int getZ();// getZ()
|
||||
|
||||
public AnotherDerived(int, int, int);// .ctor(int, int, int)
|
||||
|
||||
public abstract int getAbstractProp();// getAbstractProp()
|
||||
|
||||
public abstract void noReturn(@org.jetbrains.annotations.NotNull() java.lang.String);// noReturn(java.lang.String)
|
||||
|
||||
public int getX$light_idea_test_case();// getX$light_idea_test_case()
|
||||
|
||||
public int getY();// getY()
|
||||
|
||||
}
|
||||
|
||||
final class Private /* Private*/ {
|
||||
public Private();// .ctor()
|
||||
|
||||
public boolean getOverridesNothing();// getOverridesNothing()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
interface Intf {
|
||||
fun v(): Int
|
||||
}
|
||||
interface IntfWithProp : Intf {
|
||||
val x: Int
|
||||
}
|
||||
abstract class Base(p: Int) {
|
||||
open protected fun v(): Int? { }
|
||||
fun nv() { }
|
||||
abstract fun abs(): Int
|
||||
|
||||
internal open val x: Int get() { }
|
||||
open var y = 1
|
||||
open protected var z = 1
|
||||
}
|
||||
class Derived(p: Int) : Base(p), IntfWithProp {
|
||||
override fun v() = unknown()
|
||||
override val x = 3
|
||||
override fun abs() = 0
|
||||
}
|
||||
abstract class AnotherDerived(override val x: Int, override val y: Int, override val z: Int) : Base(2) {
|
||||
final override fun v() { }
|
||||
abstract fun noReturn(s: String)
|
||||
abstract val abstractProp: Int
|
||||
}
|
||||
|
||||
private class Private {
|
||||
override val overridesNothing: Boolean
|
||||
get() = false
|
||||
}
|
||||
// COMPILATION_ERRORS
|
||||
@@ -0,0 +1,31 @@
|
||||
public final class UInt /* UInt*/ {
|
||||
private final int value;
|
||||
|
||||
}
|
||||
|
||||
public enum Foo /* Foo*/ {
|
||||
;
|
||||
|
||||
private final int x;
|
||||
|
||||
public final int getX();// getX()
|
||||
|
||||
}
|
||||
|
||||
public final class InlinedDelegate /* InlinedDelegate*/<T> {
|
||||
private T node;
|
||||
|
||||
public final T getNode();// getNode()
|
||||
|
||||
}
|
||||
|
||||
public final class InlineInheritance /* InlineInheritance*/ {
|
||||
private final int v;
|
||||
|
||||
public final int getV();// getV()
|
||||
|
||||
public int getX();// getX()
|
||||
|
||||
public int y();// y()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
public final class UInt /* UInt*/ {
|
||||
}
|
||||
|
||||
public enum Foo /* Foo*/ {
|
||||
;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static Foo valueOf(java.lang.String) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static Foo[] values();// values()
|
||||
|
||||
public final int getX();// getX()
|
||||
|
||||
}
|
||||
|
||||
public final class InlinedDelegate /* InlinedDelegate*/<T> {
|
||||
public final T getNode();// getNode()
|
||||
|
||||
}
|
||||
|
||||
public final class InlineInheritance /* InlineInheritance*/ {
|
||||
public final int getV();// getV()
|
||||
|
||||
public int getX();// getX()
|
||||
|
||||
public int y();// y()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// CHECK_BY_JAVA_FILE
|
||||
inline class UInt(private val value: Int) { }
|
||||
|
||||
inline enum class Foo(val x: Int) {
|
||||
A(0), B(1);
|
||||
|
||||
fun example() { }
|
||||
}
|
||||
|
||||
inline class InlinedDelegate<T>(var node: T) {
|
||||
operator fun setValue(thisRef: A, property: KProperty<*>, value: T) {
|
||||
if (node !== value) {
|
||||
thisRef.notify(node, value)
|
||||
}
|
||||
node = value
|
||||
}
|
||||
|
||||
operator fun getValue(thisRef: A, property: KProperty<*>): T {
|
||||
return node
|
||||
}
|
||||
}
|
||||
|
||||
inline class InlineInheritance(val v: Int) : I {
|
||||
override fun y() = 4
|
||||
|
||||
override val x get() = 5
|
||||
|
||||
fun z() = 7
|
||||
}
|
||||
|
||||
// COMPILATION_ERRORS
|
||||
@@ -0,0 +1,8 @@
|
||||
public final class A /* A*/ {
|
||||
@kotlin.Suppress(names = {"INVISIBLE_REFERENCE", "INVISIBLE_MEMBER"})
|
||||
@kotlin.internal.InlineOnly()
|
||||
private final void foo();// foo()
|
||||
|
||||
public A();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
public final class A /* A*/ {
|
||||
@kotlin.internal.InlineOnly()
|
||||
private final void foo();// foo()
|
||||
|
||||
public A();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class A {
|
||||
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
||||
@kotlin.internal.InlineOnly
|
||||
inline fun foo() {}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
public final class C /* C*/ {
|
||||
public C();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
class C {
|
||||
inline fun <reified T> foo(x: Any): T = x as T
|
||||
|
||||
inline val <reified T> bar: T?
|
||||
get() = null as T?
|
||||
set(value) {}
|
||||
|
||||
var <reified T> T.x: String
|
||||
inline get() = toString()
|
||||
inline set(value) {}
|
||||
}
|
||||
|
||||
// COMPILATION_ERRORS
|
||||
@@ -0,0 +1,61 @@
|
||||
public final class A /* A*/ {
|
||||
@kotlin.jvm.JvmField()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.Collection<?> a;
|
||||
|
||||
@kotlin.jvm.JvmField()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.util.Collection<?> c;
|
||||
|
||||
@kotlin.jvm.JvmField()
|
||||
public int b;
|
||||
|
||||
@kotlin.jvm.JvmField()
|
||||
public static int d;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final A.Companion Companion;
|
||||
|
||||
public A();// .ctor()
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* A.Companion*/ {
|
||||
private Companion();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface B /* B*/ {
|
||||
@kotlin.jvm.JvmField()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.util.Collection<?> a;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final B.Companion Companion;
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* B.Companion*/ {
|
||||
private Companion();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class C /* C*/ {
|
||||
@kotlin.jvm.JvmField()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.Collection<?> a;
|
||||
|
||||
@kotlin.jvm.JvmField()
|
||||
public int b;
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
public C(@kotlin.jvm.JvmField() @org.jetbrains.annotations.NotNull() java.util.Collection<?>, @kotlin.jvm.JvmField() int);// .ctor(java.util.Collection<?>, int)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
public final class A /* A*/ {
|
||||
@kotlin.jvm.JvmField()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.Collection<?> a;
|
||||
|
||||
@kotlin.jvm.JvmField()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.util.Collection<?> c;
|
||||
|
||||
@kotlin.jvm.JvmField()
|
||||
public int b;
|
||||
|
||||
@kotlin.jvm.JvmField()
|
||||
public static int d;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final A.Companion Companion;
|
||||
|
||||
public A();// .ctor()
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* A.Companion*/ {
|
||||
private Companion();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface B /* B*/ {
|
||||
@kotlin.jvm.JvmField()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.util.Collection<?> a;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final B.Companion Companion;
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* B.Companion*/ {
|
||||
private Companion();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class C /* C*/ {
|
||||
@kotlin.jvm.JvmField()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.Collection<?> a;
|
||||
|
||||
@kotlin.jvm.JvmField()
|
||||
public int b;
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
public C(@org.jetbrains.annotations.NotNull() java.util.Collection<?>, int);// .ctor(java.util.Collection<?>, int)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// IGNORE_FIR
|
||||
// Ignored due to KT-53573
|
||||
class A {
|
||||
@JvmField
|
||||
val a: Collection<*> = emptyList()
|
||||
@JvmField
|
||||
var b: Int = 1
|
||||
|
||||
companion object {
|
||||
@JvmField
|
||||
val c: Collection<*> = emptyList()
|
||||
@JvmField
|
||||
var d: Int = 1
|
||||
}
|
||||
}
|
||||
|
||||
interface B {
|
||||
companion object {
|
||||
@JvmField
|
||||
val a: Collection<*> = emptyList()
|
||||
}
|
||||
}
|
||||
|
||||
class C(
|
||||
@JvmField
|
||||
val a: Collection<*> = emptyList(),
|
||||
@JvmField
|
||||
var b: Int = 1
|
||||
)
|
||||
// COMPILATION_ERRORS
|
||||
@@ -0,0 +1,29 @@
|
||||
public final class C /* C*/ {
|
||||
@kotlin.jvm.JvmName(name = "fooInt")
|
||||
public final void fooInt(@org.jetbrains.annotations.NotNull() java.util.List<java.lang.Integer>);// fooInt(java.util.List<java.lang.Integer>)
|
||||
|
||||
@kotlin.jvm.JvmName(name = "get_rwProp")
|
||||
public final int get_rwProp();// get_rwProp()
|
||||
|
||||
@kotlin.jvm.JvmName(name = "hasBigArity")
|
||||
public final boolean hasBigArity();// hasBigArity()
|
||||
|
||||
@kotlin.jvm.JvmName(name = "set_rwProp")
|
||||
public final void set_rwProp(int);// set_rwProp(int)
|
||||
|
||||
@kotlin.jvm.JvmName(name = "xyz1")
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String xyz1();// xyz1()
|
||||
|
||||
@kotlin.jvm.JvmName(name = "xyz2")
|
||||
public final void xyz2(@org.jetbrains.annotations.NotNull() java.lang.String);// xyz2(java.lang.String)
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
public final int getRwProp();// getRwProp()
|
||||
|
||||
public final void foo(@org.jetbrains.annotations.NotNull() java.util.List<java.lang.String>);// foo(java.util.List<java.lang.String>)
|
||||
|
||||
public final void setRwProp(int);// setRwProp(int)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
class C {
|
||||
var rwProp: Int
|
||||
@JvmName("get_rwProp")
|
||||
get() = 0
|
||||
@JvmName("set_rwProp")
|
||||
set(v) {}
|
||||
|
||||
@get:JvmName("xyz1")
|
||||
@set:JvmName("xyz2")
|
||||
var xyz: String
|
||||
get() = ""
|
||||
set(value) {}
|
||||
|
||||
@get:JvmName("hasBigArity")
|
||||
val hasBigArity: Boolean
|
||||
get() = true
|
||||
|
||||
fun getRwProp(): Int = 123
|
||||
fun setRwProp(v: Int) {}
|
||||
|
||||
fun foo(x: List<String>) {}
|
||||
@JvmName("fooInt")
|
||||
fun foo(x: List<Int>) {}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
public final class C /* C*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String p2;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final C.Companion Companion;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final java.lang.String type;
|
||||
|
||||
private final boolean p1 = false /* initializer type: boolean */;
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void fooStatic(double);// fooStatic(double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void fooStatic(int, double);// fooStatic(int, double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void fooStatic(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// fooStatic(int, double, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public C(@org.jetbrains.annotations.Nullable() java.lang.String);// .ctor(java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public C(@org.jetbrains.annotations.Nullable() java.lang.String, boolean);// .ctor(java.lang.String, boolean)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public C(@org.jetbrains.annotations.Nullable() java.lang.String, boolean, @org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String, boolean, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void bar();// bar()
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void bar(int);// bar(int)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void bar(int, double);// bar(int, double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void bar(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// bar(int, double, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void baz(@org.jetbrains.annotations.NotNull() java.lang.String);// baz(java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void baz(int, @org.jetbrains.annotations.NotNull() java.lang.String);// baz(int, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void baz(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// baz(int, double, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foo(double);// foo(double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foo(int, double);// foo(int, double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foo(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// foo(int, double, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foobar(int);// foobar(int)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foobar(int, double);// foobar(int, double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foobar(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// foobar(int, double, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foobarbaz(int, @org.jetbrains.annotations.NotNull() java.lang.String);// foobarbaz(int, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foobarbaz(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// foobarbaz(int, double, java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getP2();// getP2()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getType();// getType()
|
||||
|
||||
public final boolean getP1();// getP1()
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* C.Companion*/ {
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void fooStatic(double);// fooStatic(double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void fooStatic(int, double);// fooStatic(int, double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void fooStatic(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// fooStatic(int, double, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foo123(double);// foo123(double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foo123(int, double);// foo123(int, double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foo123(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// foo123(int, double, java.lang.String)
|
||||
|
||||
private Companion();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
class C @JvmOverloads constructor(
|
||||
val type: String?,
|
||||
val p1: Boolean = false,
|
||||
val p2: String = type!!
|
||||
) {
|
||||
@JvmOverloads
|
||||
fun foo(x: Int = 1, y: Double, z: String = "") {}
|
||||
@JvmOverloads
|
||||
fun bar(x: Int = 1, y: Double = 1.3, z: String = "") {}
|
||||
@JvmOverloads
|
||||
fun baz(x: Int = 1, y: Double = 1.3, z: String) {}
|
||||
@JvmOverloads
|
||||
fun foobar(x: Int, y: Double = 1.3, z: String = "") {}
|
||||
@JvmOverloads
|
||||
fun foobarbaz(x: Int, y: Double = 1.3, z: String) {}
|
||||
|
||||
companion object {
|
||||
@JvmOverloads
|
||||
fun foo123(x: Int = 1, y: Double, z: String = "") {}
|
||||
@JvmStatic
|
||||
@JvmOverloads
|
||||
fun fooStatic(x: Int = 1, y: Double, z: String = "") {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
public final class C /* C*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String p2;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final C.Companion Companion;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final java.lang.String type;
|
||||
|
||||
private final boolean p1;
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void fooStatic(double);// fooStatic(double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void fooStatic(int, double);// fooStatic(int, double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void fooStatic(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// fooStatic(int, double, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public C(@org.jetbrains.annotations.Nullable() java.lang.String);// .ctor(java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public C(@org.jetbrains.annotations.Nullable() java.lang.String, boolean);// .ctor(java.lang.String, boolean)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public C(@org.jetbrains.annotations.Nullable() java.lang.String, boolean, @org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String, boolean, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void bar();// bar()
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void bar(int);// bar(int)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void bar(int, double);// bar(int, double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void bar(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// bar(int, double, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void baz(@org.jetbrains.annotations.NotNull() java.lang.String);// baz(java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void baz(int, @org.jetbrains.annotations.NotNull() java.lang.String);// baz(int, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void baz(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// baz(int, double, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foo(double);// foo(double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foo(int, double);// foo(int, double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foo(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// foo(int, double, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foobar(int);// foobar(int)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foobar(int, double);// foobar(int, double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foobar(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// foobar(int, double, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foobarbaz(int, @org.jetbrains.annotations.NotNull() java.lang.String);// foobarbaz(int, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foobarbaz(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// foobarbaz(int, double, java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getP2();// getP2()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getType();// getType()
|
||||
|
||||
public final boolean getP1();// getP1()
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* C.Companion*/ {
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void fooStatic(double);// fooStatic(double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void fooStatic(int, double);// fooStatic(int, double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void fooStatic(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// fooStatic(int, double, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foo123(double);// foo123(double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foo123(int, double);// foo123(int, double)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
public final void foo123(int, double, @org.jetbrains.annotations.NotNull() java.lang.String);// foo123(int, double, java.lang.String)
|
||||
|
||||
private Companion();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
@kotlin.jvm.JvmRecord()
|
||||
public final class MyRec /* pkg.MyRec*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String name;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String component1();// component1()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getName();// getName()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final pkg.MyRec copy(@org.jetbrains.annotations.NotNull() java.lang.String);// copy(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.String toString();// toString()
|
||||
|
||||
public MyRec(@org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String)
|
||||
|
||||
public boolean equals(@org.jetbrains.annotations.Nullable() java.lang.Object);// equals(java.lang.Object)
|
||||
|
||||
public int hashCode();// hashCode()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
@kotlin.jvm.JvmRecord()
|
||||
public final class MyRec /* pkg.MyRec*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String name;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String component1();// component1()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String name();// name()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final pkg.MyRec copy(@org.jetbrains.annotations.NotNull() java.lang.String);// copy(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.String toString();// toString()
|
||||
|
||||
public MyRec(@org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String)
|
||||
|
||||
public boolean equals(@org.jetbrains.annotations.Nullable() java.lang.Object);// equals(java.lang.Object)
|
||||
|
||||
public int hashCode();// hashCode()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// CHECK_BY_JAVA_FILE
|
||||
// API_VERSION: 1.5
|
||||
// JVM_TARGET: 17
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+JvmRecordSupport -Xjvm-enable-preview
|
||||
// IGNORE_FIR
|
||||
// reason: test framework does not support using JDK 17 as dependency
|
||||
package pkg
|
||||
|
||||
@JvmRecord
|
||||
data class MyRec(val name: String)
|
||||
// JDK 15 should be used to compile this file
|
||||
// COMPILATION_ERRORS
|
||||
@@ -0,0 +1,20 @@
|
||||
public final class MyRec /* pkg.MyRec*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String component1();// component1()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String name();// name()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final pkg.MyRec copy(@org.jetbrains.annotations.NotNull() java.lang.String);// copy(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.String toString();// toString()
|
||||
|
||||
public MyRec(@org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String)
|
||||
|
||||
public boolean equals(@org.jetbrains.annotations.Nullable() java.lang.Object);// equals(java.lang.Object)
|
||||
|
||||
public int hashCode();// hashCode()
|
||||
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
public final class MyClass /* MyClass*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String prop2 = "" /* initializer type: java.lang.String */;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final MyClass.Companion Companion;
|
||||
|
||||
private static int prop = 4 /* initializer type: int */;
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getProp2();// getProp2()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void setProp(int);// setProp(int)
|
||||
|
||||
public MyClass();// .ctor()
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* MyClass.Companion*/ {
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getProp2();// getProp2()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void setProp(int);// setProp(int)
|
||||
|
||||
private Companion();// .ctor()
|
||||
|
||||
public final int getProp();// getProp()
|
||||
|
||||
public final void setProp2(@org.jetbrains.annotations.NotNull() java.lang.String);// setProp2(java.lang.String)
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
class MyClass {
|
||||
companion object {
|
||||
var prop: Int = 4
|
||||
@JvmStatic
|
||||
set(value) {
|
||||
field = value
|
||||
}
|
||||
|
||||
get() = field
|
||||
|
||||
@get:JvmStatic
|
||||
var prop2: String = ""
|
||||
set(value) {
|
||||
field = value
|
||||
}
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
public final class MyClass /* MyClass*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String prop2;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final MyClass.Companion Companion;
|
||||
|
||||
private static int prop;
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getProp2();// getProp2()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void setProp(int);// setProp(int)
|
||||
|
||||
public MyClass();// .ctor()
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* MyClass.Companion*/ {
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getProp2();// getProp2()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void setProp(int);// setProp(int)
|
||||
|
||||
private Companion();// .ctor()
|
||||
|
||||
public final int getProp();// getProp()
|
||||
|
||||
public final void setProp2(@org.jetbrains.annotations.NotNull() java.lang.String);// setProp2(java.lang.String)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
public final class A /* A*/ {
|
||||
private int z = 1 /* initializer type: int */;
|
||||
|
||||
public A f;
|
||||
|
||||
public A();// .ctor()
|
||||
|
||||
public final int getX();// getX()
|
||||
|
||||
public final void setF(@org.jetbrains.annotations.NotNull() A);// setF(A)
|
||||
|
||||
public final void setX(int);// setX(int)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
public final class A /* A*/ {
|
||||
private int z;
|
||||
|
||||
public A f;
|
||||
|
||||
public A();// .ctor()
|
||||
|
||||
public final int getX();// getX()
|
||||
|
||||
public final void setF(@org.jetbrains.annotations.NotNull() A);// setF(A)
|
||||
|
||||
public final void setX(int);// setX(int)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
class A {
|
||||
@JvmSynthetic
|
||||
fun foo() {}
|
||||
|
||||
@JvmSynthetic
|
||||
var x = 1
|
||||
|
||||
@JvmField
|
||||
@JvmSynthetic
|
||||
var y = 1
|
||||
|
||||
var z = 1
|
||||
@JvmSynthetic get
|
||||
@JvmSynthetic set
|
||||
|
||||
@get:JvmSynthetic
|
||||
lateinit var f: A
|
||||
}
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
public final class X /* X*/ {
|
||||
private int v = 1 /* initializer type: int */;
|
||||
|
||||
private int w = 1 /* initializer type: int */;
|
||||
|
||||
public X();// .ctor()
|
||||
|
||||
public final int getW();// getW()
|
||||
|
||||
public final void setV(int);// setV(int)
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
public final class X /* X*/ {
|
||||
public X();// .ctor()
|
||||
|
||||
public final int getW();// getW()
|
||||
|
||||
public final void setV(int);// setV(int)
|
||||
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// CHECK_BY_JAVA_FILE
|
||||
|
||||
class X {
|
||||
@get:JvmSynthetic
|
||||
var v = 1
|
||||
|
||||
@set:JvmSynthetic
|
||||
var w = 1
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
public final class X /* X*/ {
|
||||
private int v;
|
||||
|
||||
private int w;
|
||||
|
||||
public X();// .ctor()
|
||||
|
||||
public final int getW();// getW()
|
||||
|
||||
public final void setV(int);// setV(int)
|
||||
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
public final class Inv /* Inv*/<E> {
|
||||
public Inv();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Out /* Out*/<T> {
|
||||
public Out();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class OutPair /* OutPair*/<Final, Y> {
|
||||
public OutPair();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class In /* In*/<Z> {
|
||||
public In();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Final /* Final*/ {
|
||||
public Final();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public class Open /* Open*/ {
|
||||
public Open();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Container /* Container*/ {
|
||||
@kotlin.jvm.JvmSuppressWildcards(suppress = false)
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Out<Open> bar();// bar()
|
||||
|
||||
@kotlin.jvm.JvmSuppressWildcards(suppress = false)
|
||||
public final int foo(boolean, @org.jetbrains.annotations.NotNull() Out<java.lang.Integer>);// foo(boolean, Out<java.lang.Integer>)
|
||||
|
||||
@kotlin.jvm.JvmSuppressWildcards(suppress = true)
|
||||
public final int bar(boolean, @org.jetbrains.annotations.NotNull() In<? super java.lang.Long>, long);// bar(boolean, In<? super java.lang.Long>, long)
|
||||
|
||||
@kotlin.jvm.JvmSuppressWildcards(suppress = true)
|
||||
public final void deepOpen(@org.jetbrains.annotations.NotNull() Out<? extends Out<? extends Out<? extends Open>>>);// deepOpen(Out<? extends Out<? extends Out<? extends Open>>>)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final OutPair<Final, OutPair<Out<Final>, Out<? extends Final>>> falseTrueFalse();// falseTrueFalse()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final OutPair<Open, ? extends OutPair<Open,? extends Out<Open>>> combination();// combination()
|
||||
|
||||
public Container();// .ctor()
|
||||
|
||||
public final void simpleIn(@org.jetbrains.annotations.NotNull() In<? super java.lang.Object>);// simpleIn(In<? super java.lang.Object>)
|
||||
|
||||
public final void simpleOut(@org.jetbrains.annotations.NotNull() Out<? extends Final>);// simpleOut(Out<? extends Final>)
|
||||
|
||||
}
|
||||
|
||||
public abstract interface A /* A*/<T> {
|
||||
@kotlin.jvm.JvmSuppressWildcards(suppress = true)
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract Out<T> foo();// foo()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface B /* B*/ {
|
||||
@kotlin.jvm.JvmSuppressWildcards(suppress = true)
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract In<Open> foo();// foo()
|
||||
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
public final class Inv /* Inv*/<E> {
|
||||
public Inv();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Out /* Out*/<T> {
|
||||
public Out();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class OutPair /* OutPair*/<Final, Y> {
|
||||
public OutPair();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class In /* In*/<Z> {
|
||||
public In();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Final /* Final*/ {
|
||||
public Final();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public class Open /* Open*/ {
|
||||
public Open();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Container /* Container*/ {
|
||||
@kotlin.jvm.JvmSuppressWildcards(suppress = false)
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Out<? extends Open> bar();// bar()
|
||||
|
||||
@kotlin.jvm.JvmSuppressWildcards(suppress = false)
|
||||
public final int foo(boolean, @org.jetbrains.annotations.NotNull() Out<? extends java.lang.Integer>);// foo(boolean, Out<? extends java.lang.Integer>)
|
||||
|
||||
@kotlin.jvm.JvmSuppressWildcards(suppress = true)
|
||||
public final int bar(boolean, @org.jetbrains.annotations.NotNull() In<java.lang.Long>, long);// bar(boolean, In<java.lang.Long>, long)
|
||||
|
||||
@kotlin.jvm.JvmSuppressWildcards(suppress = true)
|
||||
public final void deepOpen(@org.jetbrains.annotations.NotNull() Out<Out<Out<Open>>>);// deepOpen(Out<Out<Out<Open>>>)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final OutPair<? extends Final, OutPair<Out<Final>, Out<? extends Final>>> falseTrueFalse();// falseTrueFalse()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final OutPair<Open, ? extends OutPair<Open,? extends Out<Open>>> combination();// combination()
|
||||
|
||||
public Container();// .ctor()
|
||||
|
||||
public final void simpleIn(@org.jetbrains.annotations.NotNull() In<? super java.lang.Object>);// simpleIn(In<? super java.lang.Object>)
|
||||
|
||||
public final void simpleOut(@org.jetbrains.annotations.NotNull() Out<? extends Final>);// simpleOut(Out<? extends Final>)
|
||||
|
||||
}
|
||||
|
||||
public abstract interface A /* A*/<T> {
|
||||
@kotlin.jvm.JvmSuppressWildcards(suppress = true)
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract Out<T> foo();// foo()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface B /* B*/ {
|
||||
@kotlin.jvm.JvmSuppressWildcards(suppress = true)
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract In<Open> foo();// foo()
|
||||
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
class Inv<E>
|
||||
class Out<out T>
|
||||
class OutPair<out Final, out Y>
|
||||
class In<in Z>
|
||||
|
||||
class Final
|
||||
open class Open
|
||||
|
||||
class Container {
|
||||
@JvmSuppressWildcards(true)
|
||||
fun deepOpen(x: Out<Out<Out<Open>>>) {}
|
||||
|
||||
|
||||
@JvmSuppressWildcards(false)
|
||||
fun bar(): Out<Open> = null!!
|
||||
|
||||
fun simpleOut(x: Out<@JvmWildcard Final>) {}
|
||||
fun simpleIn(x: In<@JvmWildcard Any?>) {}
|
||||
|
||||
fun falseTrueFalse(): @JvmSuppressWildcards(false) OutPair<Final, @JvmSuppressWildcards OutPair<Out<Final>, Out<@JvmSuppressWildcards(false) Final>>> = null!!
|
||||
fun combination(): @JvmSuppressWildcards OutPair<Open, @JvmWildcard OutPair<Open, @JvmWildcard Out<Open>>> = null!!
|
||||
|
||||
@JvmSuppressWildcards(false)
|
||||
fun foo(x: Boolean, y: Out<Int>): Int = 1
|
||||
|
||||
@JvmSuppressWildcards(true)
|
||||
fun bar(x: Boolean, y: In<Long>, z: @JvmSuppressWildcards(false) Long): Int = 1
|
||||
}
|
||||
|
||||
interface A<T> {
|
||||
@JvmSuppressWildcards(true)
|
||||
fun foo(): Out<T>
|
||||
}
|
||||
|
||||
interface B {
|
||||
@JvmSuppressWildcards(true)
|
||||
fun foo(): In<Open>
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class OutPair /* OutPair*/<Final, Y> {
|
||||
public OutPair();// .ctor()
|
||||
|
||||
}
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
public class A /* A*/ {
|
||||
public java.lang.String a;
|
||||
|
||||
public java.lang.String b;
|
||||
|
||||
public java.lang.String c;
|
||||
|
||||
public java.lang.String d;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getA();// getA()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getB();// getB()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getC();// getC()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getD();// getD()
|
||||
|
||||
protected final void setC(@org.jetbrains.annotations.NotNull() java.lang.String);// setC(java.lang.String)
|
||||
|
||||
public A();// .ctor()
|
||||
|
||||
public final void setA(@org.jetbrains.annotations.NotNull() java.lang.String);// setA(java.lang.String)
|
||||
|
||||
public final void setD(@org.jetbrains.annotations.NotNull() java.lang.String);// setD(java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public class B /* B*/ {
|
||||
public java.lang.String a;
|
||||
|
||||
public java.lang.String b;
|
||||
|
||||
public java.lang.String c;
|
||||
|
||||
public java.lang.String d;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getA$light_idea_test_case();// getA$light_idea_test_case()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getB$light_idea_test_case();// getB$light_idea_test_case()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getC$light_idea_test_case();// getC$light_idea_test_case()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getD$light_idea_test_case();// getD$light_idea_test_case()
|
||||
|
||||
protected final void setC$light_idea_test_case(@org.jetbrains.annotations.NotNull() java.lang.String);// setC$light_idea_test_case(java.lang.String)
|
||||
|
||||
public B();// .ctor()
|
||||
|
||||
public final void setA$light_idea_test_case(@org.jetbrains.annotations.NotNull() java.lang.String);// setA$light_idea_test_case(java.lang.String)
|
||||
|
||||
public final void setD$light_idea_test_case(@org.jetbrains.annotations.NotNull() java.lang.String);// setD$light_idea_test_case(java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public class C /* C*/ {
|
||||
protected java.lang.String a;
|
||||
|
||||
protected java.lang.String b;
|
||||
|
||||
protected java.lang.String c;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
protected final java.lang.String getA();// getA()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
protected final java.lang.String getB();// getB()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
protected final java.lang.String getC();// getC()
|
||||
|
||||
protected final void setA(@org.jetbrains.annotations.NotNull() java.lang.String);// setA(java.lang.String)
|
||||
|
||||
protected final void setC(@org.jetbrains.annotations.NotNull() java.lang.String);// setC(java.lang.String)
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public class D /* D*/ {
|
||||
private java.lang.String a;
|
||||
|
||||
private java.lang.String b;
|
||||
|
||||
public D();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
public class A /* A*/ {
|
||||
private java.lang.String b;
|
||||
|
||||
protected java.lang.String c;
|
||||
|
||||
public java.lang.String a;
|
||||
|
||||
public java.lang.String d;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getA();// getA()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getB();// getB()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getC();// getC()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getD();// getD()
|
||||
|
||||
protected final void setC(@org.jetbrains.annotations.NotNull() java.lang.String);// setC(java.lang.String)
|
||||
|
||||
public A();// .ctor()
|
||||
|
||||
public final void setA(@org.jetbrains.annotations.NotNull() java.lang.String);// setA(java.lang.String)
|
||||
|
||||
public final void setD$light_idea_test_case(@org.jetbrains.annotations.NotNull() java.lang.String);// setD$light_idea_test_case(java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public class B /* B*/ {
|
||||
private java.lang.String b;
|
||||
|
||||
protected java.lang.String c;
|
||||
|
||||
public java.lang.String a;
|
||||
|
||||
public java.lang.String d;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getA$light_idea_test_case();// getA$light_idea_test_case()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getB$light_idea_test_case();// getB$light_idea_test_case()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getC$light_idea_test_case();// getC$light_idea_test_case()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getD$light_idea_test_case();// getD$light_idea_test_case()
|
||||
|
||||
protected final void setC(@org.jetbrains.annotations.NotNull() java.lang.String);// setC(java.lang.String)
|
||||
|
||||
public B();// .ctor()
|
||||
|
||||
public final void setA$light_idea_test_case(@org.jetbrains.annotations.NotNull() java.lang.String);// setA$light_idea_test_case(java.lang.String)
|
||||
|
||||
public final void setD$light_idea_test_case(@org.jetbrains.annotations.NotNull() java.lang.String);// setD$light_idea_test_case(java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public class C /* C*/ {
|
||||
private java.lang.String b;
|
||||
|
||||
protected java.lang.String a;
|
||||
|
||||
protected java.lang.String c;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
protected final java.lang.String getA();// getA()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
protected final java.lang.String getB();// getB()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
protected final java.lang.String getC();// getC()
|
||||
|
||||
protected final void setA(@org.jetbrains.annotations.NotNull() java.lang.String);// setA(java.lang.String)
|
||||
|
||||
protected final void setC(@org.jetbrains.annotations.NotNull() java.lang.String);// setC(java.lang.String)
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public class D /* D*/ {
|
||||
private java.lang.String a;
|
||||
|
||||
private java.lang.String b;
|
||||
|
||||
public D();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
open class A {
|
||||
lateinit var a: String
|
||||
|
||||
lateinit var b: String
|
||||
private set
|
||||
|
||||
lateinit var c: String
|
||||
protected set
|
||||
|
||||
lateinit var d: String
|
||||
internal set
|
||||
}
|
||||
|
||||
open class B {
|
||||
internal lateinit var a: String
|
||||
|
||||
internal lateinit var b: String
|
||||
private set
|
||||
|
||||
internal lateinit var c: String
|
||||
protected set
|
||||
|
||||
internal lateinit var d: String
|
||||
internal set
|
||||
}
|
||||
|
||||
open class C {
|
||||
protected lateinit var a: String
|
||||
|
||||
protected lateinit var b: String
|
||||
private set
|
||||
|
||||
protected lateinit var c: String
|
||||
protected set
|
||||
}
|
||||
|
||||
open class D {
|
||||
private lateinit var a: String
|
||||
|
||||
private lateinit var b: String
|
||||
private set
|
||||
}
|
||||
|
||||
// COMPILATION_ERRORS
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
public final class Boo /* Boo*/ {
|
||||
public Boo();// .ctor()
|
||||
|
||||
public final void fooBar();// fooBar()
|
||||
|
||||
}
|
||||
|
||||
public static final class LocalClassBase /* null*/ {
|
||||
public LocalClassBase();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public static final class LocalClassDerived /* null*/ extends Boo.LocalClassBase {
|
||||
public LocalClassDerived();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
public final class Boo /* Boo*/ {
|
||||
public Boo();// .ctor()
|
||||
|
||||
public final void fooBar();// fooBar()
|
||||
|
||||
}
|
||||
|
||||
public static final class LocalClassBase /* null*/ {
|
||||
public LocalClassBase();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public static final class LocalClassDerived /* null*/ extends LocalClassBase {
|
||||
public LocalClassDerived();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// CHECK_BY_JAVA_FILE
|
||||
class Boo {
|
||||
fun fooBar() {
|
||||
class LocalClassBase
|
||||
|
||||
class LocalClassDerived : LocalClassBase
|
||||
}
|
||||
}
|
||||
|
||||
// COMPILATION_ERRORS
|
||||
@@ -0,0 +1,184 @@
|
||||
public final class C /* C*/ {
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String x = "" /* initializer type: java.lang.String */;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String c1;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String c;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final C.Companion Companion;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final C.Factory Factory;
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getC(@org.jetbrains.annotations.NotNull() I);// getC(I)
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void foo();// foo()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void setC(@org.jetbrains.annotations.NotNull() I, @org.jetbrains.annotations.NotNull() java.lang.String);// setC(I, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void setC1(@org.jetbrains.annotations.NotNull() java.lang.String);// setC1(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getX();// getX()
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
public static final void setX(@org.jetbrains.annotations.NotNull() java.lang.String);// setX(java.lang.String)
|
||||
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
class Factory ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* C.Companion*/ {
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getC(@org.jetbrains.annotations.NotNull() I);// getC(I)
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void foo();// foo()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void setC(@org.jetbrains.annotations.NotNull() I, @org.jetbrains.annotations.NotNull() java.lang.String);// setC(I, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void setC1(@org.jetbrains.annotations.NotNull() java.lang.String);// setC1(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getC1();// getC1()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getX();// getX()
|
||||
|
||||
private Companion();// .ctor()
|
||||
|
||||
public final void bar();// bar()
|
||||
|
||||
public final void setX(@org.jetbrains.annotations.NotNull() java.lang.String);// setX(java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public static final class Factory /* C.Factory*/ {
|
||||
private Factory();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class C1 /* C1*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static final C1.Companion Companion;
|
||||
|
||||
public C1();// .ctor()
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
private static final class Companion /* C1.Companion*/ {
|
||||
private Companion();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface I /* I*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final I.Companion Companion;
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* I.Companion*/ {
|
||||
private Companion();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Obj /* Obj*/ implements java.lang.Runnable {
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String x = "" /* initializer type: java.lang.String */;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final Obj INSTANCE;
|
||||
|
||||
@java.lang.Override()
|
||||
public void run();// run()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final int zoo();// zoo()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getX();// getX()
|
||||
|
||||
private Obj();// .ctor()
|
||||
|
||||
public static final void setX(@org.jetbrains.annotations.NotNull() java.lang.String);// setX(java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public final class ConstContainer /* ConstContainer*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final ConstContainer INSTANCE;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String str = "one" /* initializer type: java.lang.String */ /* constant value one */;
|
||||
|
||||
public static final double complexFloat = 5.118281745910645 /* initializer type: double */ /* constant value 5.118281745910645 */;
|
||||
|
||||
public static final double e = 2.7182818284 /* initializer type: double */ /* constant value 2.7182818284 */;
|
||||
|
||||
public static final float eFloat = 2.7182817f /* initializer type: float */ /* constant value 2.7182817 */;
|
||||
|
||||
public static final int one = 1 /* initializer type: int */ /* constant value 1 */;
|
||||
|
||||
public static final long complexLong = 2L /* initializer type: long */ /* constant value 2 */;
|
||||
|
||||
public static final long oneLong = 1L /* initializer type: long */ /* constant value 1 */;
|
||||
|
||||
private ConstContainer();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class ClassWithConstContainer /* ClassWithConstContainer*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final ClassWithConstContainer.Companion Companion;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String str = "one" /* initializer type: java.lang.String */ /* constant value one */;
|
||||
|
||||
public static final double complexFloat = 5.118281745910645 /* initializer type: double */ /* constant value 5.118281745910645 */;
|
||||
|
||||
public static final double e = 2.7182818284 /* initializer type: double */ /* constant value 2.7182818284 */;
|
||||
|
||||
public static final float eFloat = 2.7182817f /* initializer type: float */ /* constant value 2.7182817 */;
|
||||
|
||||
public static final int one = 1 /* initializer type: int */ /* constant value 1 */;
|
||||
|
||||
public static final long complexLong = 2L /* initializer type: long */ /* constant value 2 */;
|
||||
|
||||
public static final long oneLong = 1L /* initializer type: long */ /* constant value 1 */;
|
||||
|
||||
public ClassWithConstContainer();// .ctor()
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* ClassWithConstContainer.Companion*/ {
|
||||
private Companion();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
public final class C /* C*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String x;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final C.Companion Companion;
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getC(@org.jetbrains.annotations.NotNull() I);// getC(I)
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void foo();// foo()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void setC(@org.jetbrains.annotations.NotNull() I, @org.jetbrains.annotations.NotNull() java.lang.String);// setC(I, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void setC1(@org.jetbrains.annotations.NotNull() java.lang.String);// setC1(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getX();// getX()
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
public static final void setX(@org.jetbrains.annotations.NotNull() java.lang.String);// setX(java.lang.String)
|
||||
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
class Factory ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* C.Companion*/ {
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getC(@org.jetbrains.annotations.NotNull() I);// getC(I)
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void foo();// foo()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void setC(@org.jetbrains.annotations.NotNull() I, @org.jetbrains.annotations.NotNull() java.lang.String);// setC(I, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void setC1(@org.jetbrains.annotations.NotNull() java.lang.String);// setC1(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getC1();// getC1()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getX();// getX()
|
||||
|
||||
private Companion();// .ctor()
|
||||
|
||||
public final void bar();// bar()
|
||||
|
||||
public final void setX(@org.jetbrains.annotations.NotNull() java.lang.String);// setX(java.lang.String)
|
||||
|
||||
}
|
||||
|
||||
public static final class Factory /* C.Factory*/ {
|
||||
private Factory();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class C1 /* C1*/ {
|
||||
private static final C1.Companion Companion;
|
||||
|
||||
public C1();// .ctor()
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
private static final class Companion /* C1.Companion*/ {
|
||||
private Companion();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface I /* I*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final I.Companion Companion;
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* I.Companion*/ {
|
||||
private Companion();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class Obj /* Obj*/ implements java.lang.Runnable {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String x;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final Obj INSTANCE;
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final int zoo();// zoo()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getX();// getX()
|
||||
|
||||
private Obj();// .ctor()
|
||||
|
||||
public static final void setX(@org.jetbrains.annotations.NotNull() java.lang.String);// setX(java.lang.String)
|
||||
|
||||
public void run();// run()
|
||||
|
||||
}
|
||||
|
||||
public final class ConstContainer /* ConstContainer*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final ConstContainer INSTANCE;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String str = "one" /* initializer type: java.lang.String */ /* constant value one */;
|
||||
|
||||
public static final double complexFloat = 5.118281745910645 /* initializer type: double */ /* constant value 5.118281745910645 */;
|
||||
|
||||
public static final double e = 2.7182818284 /* initializer type: double */ /* constant value 2.7182818284 */;
|
||||
|
||||
public static final float eFloat = 2.7182817f /* initializer type: float */ /* constant value 2.7182817 */;
|
||||
|
||||
public static final int one = 1 /* initializer type: int */ /* constant value 1 */;
|
||||
|
||||
public static final long complexLong = 2L /* initializer type: long */ /* constant value 2 */;
|
||||
|
||||
public static final long oneLong = 1L /* initializer type: long */ /* constant value 1 */;
|
||||
|
||||
private ConstContainer();// .ctor()
|
||||
|
||||
}
|
||||
|
||||
public final class ClassWithConstContainer /* ClassWithConstContainer*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final ClassWithConstContainer.Companion Companion;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String str = "one" /* initializer type: java.lang.String */ /* constant value one */;
|
||||
|
||||
public static final double complexFloat = 5.118281745910645 /* initializer type: double */ /* constant value 5.118281745910645 */;
|
||||
|
||||
public static final double e = 2.7182818284 /* initializer type: double */ /* constant value 2.7182818284 */;
|
||||
|
||||
public static final float eFloat = 2.7182817f /* initializer type: float */ /* constant value 2.7182817 */;
|
||||
|
||||
public static final int one = 1 /* initializer type: int */ /* constant value 1 */;
|
||||
|
||||
public static final long complexLong = 2L /* initializer type: long */ /* constant value 2 */;
|
||||
|
||||
public static final long oneLong = 1L /* initializer type: long */ /* constant value 1 */;
|
||||
|
||||
public ClassWithConstContainer();// .ctor()
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* ClassWithConstContainer.Companion*/ {
|
||||
private Companion();// .ctor()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
|
||||
class C {
|
||||
companion object {
|
||||
@JvmStatic fun foo() {}
|
||||
fun bar() {}
|
||||
@JvmStatic var x: String = ""
|
||||
|
||||
var I.c: String
|
||||
@JvmStatic get() = "OK"
|
||||
@JvmStatic set(t: String) {}
|
||||
|
||||
var c1: String
|
||||
get() = "OK"
|
||||
@JvmStatic set(t: String) {}
|
||||
}
|
||||
companion object Factory {}
|
||||
}
|
||||
|
||||
class C1 {
|
||||
private companion object {}
|
||||
}
|
||||
|
||||
interface I {
|
||||
companion object { }
|
||||
}
|
||||
|
||||
object Obj : java.lang.Runnable {
|
||||
@JvmStatic var x: String = ""
|
||||
override fun run() {}
|
||||
@JvmStatic fun zoo(): Int = 2
|
||||
}
|
||||
|
||||
object ConstContainer {
|
||||
const val str = "one" // String
|
||||
const val one = 1 // Int
|
||||
const val oneLong = 1L // Long
|
||||
const val complexLong = 1L + 1 // Long
|
||||
const val e = 2.7182818284 // Double
|
||||
const val eFloat = 2.7182818284f // Float
|
||||
const val complexFloat = 2.7182818284f + 2.4 // Float
|
||||
}
|
||||
|
||||
class ClassWithConstContainer {
|
||||
companion object {
|
||||
const val str = "one" // String
|
||||
const val one = 1 // Int
|
||||
const val oneLong = 1L // Long
|
||||
const val complexLong = 1L + 1 // Long
|
||||
const val e = 2.7182818284 // Double
|
||||
const val eFloat = 2.7182818284f // Float
|
||||
const val complexFloat = 2.7182818284f + 2.4 // Float
|
||||
}
|
||||
}
|
||||
|
||||
// COMPILATION_ERRORS
|
||||
@@ -0,0 +1,250 @@
|
||||
public final class Foo /* Foo*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private error.NonExistentClass delegatedProp$delegate;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final Foo b;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.Object arrayConst;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final kotlin.jvm.functions.Function1<java.lang.Integer, java.lang.Integer> sum;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private java.lang.Object privateVarWithGet;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private java.lang.String name;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private java.lang.String noAccessors;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private java.lang.String protectedWithPrivateSet;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private kotlin.Lazy<java.lang.String> lazyProp$delegate;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String CONSTANT_WITH_ESCAPES = "A\tB\nC\rD'E\"F\\G$H" /* initializer type: java.lang.String */;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String SUBSYSTEM_DEPRECATED = "This subsystem is deprecated" /* initializer type: java.lang.String */;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final Foo.Companion Companion;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.lang.Boolean isEmptyMutable;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.lang.Boolean islowercase;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.lang.Integer counter2;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.lang.Integer getInt;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.lang.Integer isEmptyInt;
|
||||
|
||||
private MyProperty<Foo> delegatedProp2$delegate;
|
||||
|
||||
private boolean c;
|
||||
|
||||
private error.NonExistentClass privateDelegated$delegate;
|
||||
|
||||
private final error.NonExistentClass d;
|
||||
|
||||
private final error.NonExistentClass intConst;
|
||||
|
||||
private final int f1;
|
||||
|
||||
private final long e;
|
||||
|
||||
private int counter;
|
||||
|
||||
private int f2;
|
||||
|
||||
private int internalWithPrivateSet;
|
||||
|
||||
private int privateVarWithPrivateSet;
|
||||
|
||||
private static final error.NonExistentClass contextBean;
|
||||
|
||||
private static final int f1;
|
||||
|
||||
private static final int prop3;
|
||||
|
||||
private static int prop7;
|
||||
|
||||
protected java.lang.String protectedLateinitVar;
|
||||
|
||||
public error.NonExistentClass subject;
|
||||
|
||||
public java.lang.String internalVarPrivateSet;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
protected final java.lang.String getProtectedLateinitVar();// getProtectedLateinitVar()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
protected final java.lang.String getProtectedWithPrivateSet();// getProtectedWithPrivateSet()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Foo getB();// getB()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.Object getArrayConst();// getArrayConst()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getDelegatedProp();// getDelegatedProp()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getInternalVarPrivateSet$light_idea_test_case();// getInternalVarPrivateSet$light_idea_test_case()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getLazyProp();// getLazyProp()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getName();// getName()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getStringRepresentation$light_idea_test_case();// getStringRepresentation$light_idea_test_case()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final kotlin.jvm.functions.Function1<java.lang.Integer, java.lang.Integer> getSum();// getSum()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.Boolean getIslowercase();// getIslowercase()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.Boolean isEmptyMutable();// isEmptyMutable()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.Integer getCounter2();// getCounter2()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.Integer getGetInt();// getGetInt()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.Integer isEmptyInt();// isEmptyInt()
|
||||
|
||||
private final int getPrivateDelegated();// getPrivateDelegated()
|
||||
|
||||
private final java.lang.String getPrivateValWithGet();// getPrivateValWithGet()
|
||||
|
||||
private final void setPrivateDelegated(int);// setPrivateDelegated(int)
|
||||
|
||||
protected final int getF2();// getF2()
|
||||
|
||||
protected final long getE();// getE()
|
||||
|
||||
protected final void setF2(int);// setF2(int)
|
||||
|
||||
protected final void setProtectedLateinitVar(@org.jetbrains.annotations.NotNull() java.lang.String);// setProtectedLateinitVar(java.lang.String)
|
||||
|
||||
public Foo(int, @org.jetbrains.annotations.NotNull() Foo, boolean, error.NonExistentClass, long);// .ctor(int, Foo, boolean, error.NonExistentClass, long)
|
||||
|
||||
public final boolean getC();// getC()
|
||||
|
||||
public final boolean isEmpty();// isEmpty()
|
||||
|
||||
public final error.NonExistentClass getIntConst();// getIntConst()
|
||||
|
||||
public final error.NonExistentClass getSubject();// getSubject()
|
||||
|
||||
public final int getCounter();// getCounter()
|
||||
|
||||
public final int getDelegatedProp2();// getDelegatedProp2()
|
||||
|
||||
public final int getF1();// getF1()
|
||||
|
||||
public final int getIntProp(@org.jetbrains.annotations.NotNull() int);// getIntProp(int)
|
||||
|
||||
public final int getInternalWithPrivateSet$light_idea_test_case();// getInternalWithPrivateSet$light_idea_test_case()
|
||||
|
||||
public final void setC(boolean);// setC(boolean)
|
||||
|
||||
public final void setCounter(int);// setCounter(int)
|
||||
|
||||
public final void setCounter2(@org.jetbrains.annotations.Nullable() java.lang.Integer);// setCounter2(java.lang.Integer)
|
||||
|
||||
public final void setDelegatedProp(@org.jetbrains.annotations.NotNull() java.lang.String);// setDelegatedProp(java.lang.String)
|
||||
|
||||
public final void setDelegatedProp2(int);// setDelegatedProp2(int)
|
||||
|
||||
public final void setEmptyInt(@org.jetbrains.annotations.Nullable() java.lang.Integer);// setEmptyInt(java.lang.Integer)
|
||||
|
||||
public final void setEmptyMutable(@org.jetbrains.annotations.Nullable() java.lang.Boolean);// setEmptyMutable(java.lang.Boolean)
|
||||
|
||||
public final void setGetInt(@org.jetbrains.annotations.Nullable() java.lang.Integer);// setGetInt(java.lang.Integer)
|
||||
|
||||
public final void setIslowercase(@org.jetbrains.annotations.Nullable() java.lang.Boolean);// setIslowercase(java.lang.Boolean)
|
||||
|
||||
public final void setLazyProp(@org.jetbrains.annotations.NotNull() java.lang.String);// setLazyProp(java.lang.String)
|
||||
|
||||
public final void setName(@org.jetbrains.annotations.NotNull() java.lang.String);// setName(java.lang.String)
|
||||
|
||||
public final void setStringRepresentation$light_idea_test_case(@org.jetbrains.annotations.NotNull() java.lang.String);// setStringRepresentation$light_idea_test_case(java.lang.String)
|
||||
|
||||
public final void setSubject(error.NonExistentClass);// setSubject(error.NonExistentClass)
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* Foo.Companion*/ {
|
||||
private Companion();// .ctor()
|
||||
|
||||
public final int getF1();// getF1()
|
||||
|
||||
public final int getProp3();// getProp3()
|
||||
|
||||
public final int getProp7();// getProp7()
|
||||
|
||||
public final void setProp7(int);// setProp7(int)
|
||||
|
||||
}
|
||||
|
||||
public final class MyProperty /* MyProperty*/<T> {
|
||||
public MyProperty();// .ctor()
|
||||
|
||||
public final int getValue(T, @org.jetbrains.annotations.NotNull() kotlin.reflect.KProperty<?>);// getValue(T, kotlin.reflect.KProperty<?>)
|
||||
|
||||
public final void setValue(T, @org.jetbrains.annotations.NotNull() kotlin.reflect.KProperty<?>, int);// setValue(T, kotlin.reflect.KProperty<?>, int)
|
||||
|
||||
}
|
||||
|
||||
public final class Modifiers /* Modifiers*/ {
|
||||
private final int plainField;
|
||||
|
||||
public Modifiers();// .ctor()
|
||||
|
||||
public final int getPlainField();// getPlainField()
|
||||
|
||||
}
|
||||
|
||||
public abstract interface A /* A*/ {
|
||||
protected abstract int getInt1();// getInt1()
|
||||
|
||||
public abstract int getInt2();// getInt2()
|
||||
|
||||
public abstract void setInt2(int);// setInt2(int)
|
||||
|
||||
}
|
||||
|
||||
public final class Foo /* Foo*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Foo getFoo2();// getFoo2()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final Foo getMeNonNullFoo();// getMeNonNullFoo()
|
||||
|
||||
public Foo();// .ctor()
|
||||
|
||||
public final error.NonExistentClass getFoo();// getFoo()
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user