[light classes] drop old light classes and backend: iteration #2

drop javaFileStub and fix tests

^KT-48773
This commit is contained in:
Dmitry Gridin
2022-06-21 20:06:19 +02:00
committed by Space
parent 3cb2df9360
commit 97ce502cbe
42 changed files with 79 additions and 103 deletions
@@ -15,6 +15,3 @@ class Test(@get:MyAnnotation @set:MyAnnotation2 @setparam:MyAnnotation3 @propert
get() = Unit
set(value) {}
}
// SKIP_SANITY_TEST
// SKIP_IDE_TEST
@@ -4,6 +4,4 @@
package simple
@Repeatable
annotation class One(val value: String)
// SKIP_SANITY_TEST
// SKIP_IDE_TEST
annotation class One(val value: String)
-1
View File
@@ -5,5 +5,4 @@ class Constructors(val valInPrimary: Int) {
private constructor(): this(2)
}
// LAZINESS:NoLaziness
// FIR_COMPARISON
@@ -16,5 +16,3 @@ class Wrapper {
}
class G
// LAZINESS:NoLaziness
@@ -11,5 +11,3 @@ interface I {
fun f()
}
// LAZINESS:NoLaziness
-2
View File
@@ -9,5 +9,3 @@ interface I {
fun f()
}
// LAZINESS:NoLaziness
@@ -12,7 +12,3 @@ interface B: A {
interface C : B {
fun c() = "c"
}
// TODO: could be lazy
// see KT-22819
// LAZINESS:NoLaziness
@@ -5,5 +5,4 @@ package a
fun f() {
}
// LAZINESS:NoLaziness
// FIR_COMPARISON
@@ -8,5 +8,4 @@ class A {
}
}
// LAZINESS:NoLaziness
// FIR_COMPARISON
@@ -5,5 +5,4 @@ class OnlySecondaryConstructors {
constructor(p: Int): this()
}
// LAZINESS:NoLaziness
// FIR_COMPARISON
@@ -1,7 +1,5 @@
// Anno
// FULL_JDK
// SKIP_SANITY_TEST
// SKIP_IDE_TEST
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.TYPE_PARAMETER, AnnotationTarget.TYPE)
@@ -4,5 +4,3 @@
package p
actual typealias B = List<Int>
// SKIP_IDE_TEST
@@ -6,5 +6,3 @@ package p
fun f() {
}
// SKIP_IDE_TEST
@@ -1,5 +1,4 @@
// p.Annotations
// SKIP_SANITY_TEST
package p
@@ -32,5 +32,3 @@ class A {
}
}
}
// LAZINESS:NoConsistency
@@ -5,5 +5,3 @@
fun foo() {
}
// SKIP_IDE_TEST
@@ -23,6 +23,4 @@ class C {
}
}
// LAZINESS:NoLaziness
// SKIP_SANITY_TEST
// COMPILATION_ERRORS
@@ -1,8 +1,8 @@
public final class C /* p.C*/ extends p.A {
public C();// .ctor()
public int af();// af$light_idea_test_case()
public int af$light_idea_test_case();// af$light_idea_test_case()
public int getAp();// getAp$light_idea_test_case()
public int getAp$light_idea_test_case();// getAp$light_idea_test_case()
}
@@ -10,5 +10,4 @@ class C : A() {
}
}
// LAZINESS:NoConsistency
// COMPILATION_ERRORS
@@ -13,5 +13,4 @@ class C : A(), I {
override fun if() = 5
}
// LAZINESS:NoLaziness
// COMPILATION_ERRORS
@@ -10,5 +10,4 @@ class C : A() {
}
}
// LAZINESS:NoLaziness
// COMPILATION_ERRORS
@@ -8,5 +8,4 @@ class C : Base {
override fun foo(): Unit {}
}
// LAZINESS:NoLaziness
// FIR_COMPARISON
@@ -7,5 +7,4 @@ interface Base<T> {
class C : Base<Unit> {
override fun foo(t: Unit) {}
}
// LAZINESS:NoLaziness
// FIR_COMPARISON
@@ -1,5 +1,3 @@
// HelloWorld
println("Hello world!")
// LAZINESS:NoLaziness
@@ -11,5 +11,3 @@ class Bar(val a: Int) {
}
}
}
// LAZINESS:NoLaziness
+2 -2
View File
@@ -1,6 +1,6 @@
public class HelloWorld /* HelloWorld*/ extends kotlin.script.templates.standard.ScriptTemplateWithArgs {
public HelloWorld();// .ctor()
public HelloWorld(java.lang.String[]);// .ctor(java.lang.String[])
public static final void main(java.lang.String[]);// main(java.lang.String[])
}
}
-2
View File
@@ -1,5 +1,3 @@
// HelloWorld
println("Hello world!")
// LAZINESS:NoLaziness
+2 -2
View File
@@ -1,5 +1,5 @@
public class InnerClasses /* InnerClasses*/ extends kotlin.script.templates.standard.ScriptTemplateWithArgs {
public InnerClasses();// .ctor()
public InnerClasses(java.lang.String[]);// .ctor(java.lang.String[])
public static final void main(java.lang.String[]);// main(java.lang.String[])
@@ -23,4 +23,4 @@ public static final class Baz /* InnerClasses.Bar.Baz*/ {
public final void doSomething();// doSomething()
}}}
}}}
-2
View File
@@ -11,5 +11,3 @@ class Bar(val a: Int) {
}
}
}
// LAZINESS:NoLaziness
+24
View File
@@ -4,6 +4,12 @@ public enum Direction /* Direction*/ {
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()
}
@@ -15,6 +21,12 @@ public enum Color /* Color*/ {
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(@org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String)
private Color(int);// .ctor(int)
@@ -42,6 +54,12 @@ public enum ProtocolState /* ProtocolState*/ {
@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()
@@ -84,6 +102,12 @@ public enum IntArithmetics /* IntArithmetics*/ implements java.util.function.Bin
};
@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 int applyAsInt(int, int);// applyAsInt(int, int)