[LC] update testData for objects
^KTIJ-24119
This commit is contained in:
committed by
Space Team
parent
e75d739c7a
commit
bd7e5fd324
+6
@@ -54,6 +54,12 @@ public class SymbolLightClassesByPsiForLibraryTestGenerated extends AbstractSymb
|
|||||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/classModifiers.kt");
|
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/classModifiers.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("companionDuplication.kt")
|
||||||
|
public void testCompanionDuplication() throws Exception {
|
||||||
|
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/companionDuplication.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("constructors.kt")
|
@TestMetadata("constructors.kt")
|
||||||
public void testConstructors() throws Exception {
|
public void testConstructors() throws Exception {
|
||||||
|
|||||||
+6
@@ -54,6 +54,12 @@ public class SymbolLightClassesByPsiForSourceTestGenerated extends AbstractSymbo
|
|||||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/classModifiers.kt");
|
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/classModifiers.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("companionDuplication.kt")
|
||||||
|
public void testCompanionDuplication() throws Exception {
|
||||||
|
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/companionDuplication.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("constructors.kt")
|
@TestMetadata("constructors.kt")
|
||||||
public void testConstructors() throws Exception {
|
public void testConstructors() throws Exception {
|
||||||
|
|||||||
+23
@@ -0,0 +1,23 @@
|
|||||||
|
public final class C /* C*/ {
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
public static final C.Companion Companion;
|
||||||
|
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
public static final C.Factory Factory;
|
||||||
|
|
||||||
|
public C();// .ctor()
|
||||||
|
|
||||||
|
class Companion ...
|
||||||
|
|
||||||
|
class Factory ...
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final class Companion /* C.Companion*/ {
|
||||||
|
private Companion();// .ctor()
|
||||||
|
|
||||||
|
public final void bar();// bar()
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final class Factory /* C.Factory*/ {
|
||||||
|
private Factory();// .ctor()
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
class C {
|
||||||
|
companion object {
|
||||||
|
fun bar() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
companion object Factory {}
|
||||||
|
}
|
||||||
|
|
||||||
|
// COMPILATION_ERRORS
|
||||||
@@ -12,9 +12,6 @@ public final class C /* C*/ {
|
|||||||
@org.jetbrains.annotations.NotNull()
|
@org.jetbrains.annotations.NotNull()
|
||||||
public static final C.Companion Companion;
|
public static final C.Companion Companion;
|
||||||
|
|
||||||
@org.jetbrains.annotations.NotNull()
|
|
||||||
public static final C.Factory Factory;
|
|
||||||
|
|
||||||
@kotlin.jvm.JvmStatic()
|
@kotlin.jvm.JvmStatic()
|
||||||
@org.jetbrains.annotations.NotNull()
|
@org.jetbrains.annotations.NotNull()
|
||||||
public static final java.lang.String getC(@org.jetbrains.annotations.NotNull() I);// getC(I)
|
public static final java.lang.String getC(@org.jetbrains.annotations.NotNull() I);// getC(I)
|
||||||
@@ -36,8 +33,6 @@ public final class C /* C*/ {
|
|||||||
public static final void setX(@org.jetbrains.annotations.NotNull() java.lang.String);// setX(java.lang.String)
|
public static final void setX(@org.jetbrains.annotations.NotNull() java.lang.String);// setX(java.lang.String)
|
||||||
|
|
||||||
class Companion ...
|
class Companion ...
|
||||||
|
|
||||||
class Factory ...
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class C1 /* C1*/ {
|
public final class C1 /* C1*/ {
|
||||||
@@ -134,10 +129,6 @@ public final class ConstContainer /* ConstContainer*/ {
|
|||||||
private ConstContainer();// .ctor()
|
private ConstContainer();// .ctor()
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class Factory /* C.Factory*/ {
|
|
||||||
private Factory();// .ctor()
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract interface I /* I*/ {
|
public abstract interface I /* I*/ {
|
||||||
@org.jetbrains.annotations.NotNull()
|
@org.jetbrains.annotations.NotNull()
|
||||||
public static final I.Companion Companion;
|
public static final I.Companion Companion;
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ public final class C /* C*/ {
|
|||||||
public static final void setX(@org.jetbrains.annotations.NotNull() java.lang.String);// setX(java.lang.String)
|
public static final void setX(@org.jetbrains.annotations.NotNull() java.lang.String);// setX(java.lang.String)
|
||||||
|
|
||||||
class Companion ...
|
class Companion ...
|
||||||
|
|
||||||
class Factory ...
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class C1 /* C1*/ {
|
public final class C1 /* C1*/ {
|
||||||
@@ -124,10 +122,6 @@ public final class ConstContainer /* ConstContainer*/ {
|
|||||||
private ConstContainer();// .ctor()
|
private ConstContainer();// .ctor()
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class Factory /* C.Factory*/ {
|
|
||||||
private Factory();// .ctor()
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract interface I /* I*/ {
|
public abstract interface I /* I*/ {
|
||||||
@org.jetbrains.annotations.NotNull()
|
@org.jetbrains.annotations.NotNull()
|
||||||
public static final I.Companion Companion;
|
public static final I.Companion Companion;
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ class C {
|
|||||||
get() = "OK"
|
get() = "OK"
|
||||||
@JvmStatic set(t: String) {}
|
@JvmStatic set(t: String) {}
|
||||||
}
|
}
|
||||||
companion object Factory {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class C1 {
|
class C1 {
|
||||||
@@ -51,5 +50,3 @@ class ClassWithConstContainer {
|
|||||||
const val complexFloat = 2.7182818284f + 2.4 // Float
|
const val complexFloat = 2.7182818284f + 2.4 // Float
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// COMPILATION_ERRORS
|
|
||||||
@@ -0,0 +1,150 @@
|
|||||||
|
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 ...
|
||||||
|
}
|
||||||
|
|
||||||
|
public final class C1 /* C1*/ {
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
private static final C1.Companion Companion;
|
||||||
|
|
||||||
|
public C1();// .ctor()
|
||||||
|
|
||||||
|
class Companion ...
|
||||||
|
}
|
||||||
|
|
||||||
|
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 ...
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final class Companion /* C1.Companion*/ {
|
||||||
|
private Companion();// .ctor()
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final class Companion /* I.Companion*/ {
|
||||||
|
private Companion();// .ctor()
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final class Companion /* ClassWithConstContainer.Companion*/ {
|
||||||
|
private Companion();// .ctor()
|
||||||
|
}
|
||||||
|
|
||||||
|
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 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 abstract interface I /* I*/ {
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
public static final I.Companion Companion;
|
||||||
|
|
||||||
|
class Companion ...
|
||||||
|
}
|
||||||
|
|
||||||
|
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()
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user