Add EnumEntries to minimal-stdlib-for-tests

This change allows to revert adding `WITH_STDLIB` directive
to tests which happened at `a9343aeb`.

Co-authored-by: Alexander Udalov <Alexander.Udalov@jetbrains.com>
This commit is contained in:
Nikolay Lunyak
2023-02-13 10:36:52 +02:00
committed by Space Team
parent 3b9724d20e
commit bcfafc601e
497 changed files with 600 additions and 318 deletions
+4
View File
@@ -252,6 +252,8 @@ public final enum class DeprecationLevel : kotlin.Enum<kotlin.DeprecationLevel>
public final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun getDeclaringClass(): java.lang.Class<kotlin.DeprecationLevel!>!
// Static members
public final /*synthesized*/ val entries: kotlin.enums.EnumEntries<kotlin.DeprecationLevel>
public final /*synthesized*/ fun `<get-entries>`(): kotlin.enums.EnumEntries<kotlin.DeprecationLevel>
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): kotlin.DeprecationLevel
public final /*synthesized*/ fun values(): kotlin.Array<kotlin.DeprecationLevel>
}
@@ -691,6 +693,8 @@ public abstract class Number : kotlin.Any, java.io.Serializable {
public final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun getDeclaringClass(): java.lang.Class<kotlin.RequiresOptIn.Level!>!
// Static members
public final /*synthesized*/ val entries: kotlin.enums.EnumEntries<kotlin.RequiresOptIn.Level>
public final /*synthesized*/ fun `<get-entries>`(): kotlin.enums.EnumEntries<kotlin.RequiresOptIn.Level>
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): kotlin.RequiresOptIn.Level
public final /*synthesized*/ fun values(): kotlin.Array<kotlin.RequiresOptIn.Level>
}
+4
View File
@@ -254,6 +254,8 @@ public final enum class DeprecationLevel : kotlin.Enum<kotlin.DeprecationLevel>
public final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun getDeclaringClass(): java.lang.Class<kotlin.DeprecationLevel!>!
// Static members
public final /*synthesized*/ val entries: kotlin.enums.EnumEntries<kotlin.DeprecationLevel>
public final /*synthesized*/ fun `<get-entries>`(): kotlin.enums.EnumEntries<kotlin.DeprecationLevel>
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): kotlin.DeprecationLevel
public final /*synthesized*/ fun values(): kotlin.Array<kotlin.DeprecationLevel>
}
@@ -693,6 +695,8 @@ public abstract class Number : kotlin.Any, java.io.Serializable {
public final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun getDeclaringClass(): java.lang.Class<kotlin.RequiresOptIn.Level!>!
// Static members
public final /*synthesized*/ val entries: kotlin.enums.EnumEntries<kotlin.RequiresOptIn.Level>
public final /*synthesized*/ fun `<get-entries>`(): kotlin.enums.EnumEntries<kotlin.RequiresOptIn.Level>
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): kotlin.RequiresOptIn.Level
public final /*synthesized*/ fun values(): kotlin.Array<kotlin.RequiresOptIn.Level>
}
@@ -252,6 +252,8 @@ public final enum class DeprecationLevel : kotlin.Enum<kotlin.DeprecationLevel>
public final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun getDeclaringClass(): java.lang.Class<kotlin.DeprecationLevel!>!
// Static members
public final /*synthesized*/ val entries: kotlin.enums.EnumEntries<kotlin.DeprecationLevel>
public final /*synthesized*/ fun `<get-entries>`(): kotlin.enums.EnumEntries<kotlin.DeprecationLevel>
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): kotlin.DeprecationLevel
public final /*synthesized*/ fun values(): kotlin.Array<kotlin.DeprecationLevel>
}
@@ -691,6 +693,8 @@ public abstract class Number : kotlin.Any, java.io.Serializable {
public final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun getDeclaringClass(): java.lang.Class<kotlin.RequiresOptIn.Level!>!
// Static members
public final /*synthesized*/ val entries: kotlin.enums.EnumEntries<kotlin.RequiresOptIn.Level>
public final /*synthesized*/ fun `<get-entries>`(): kotlin.enums.EnumEntries<kotlin.RequiresOptIn.Level>
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): kotlin.RequiresOptIn.Level
public final /*synthesized*/ fun values(): kotlin.Array<kotlin.RequiresOptIn.Level>
}
@@ -1,4 +1,3 @@
// WITH_STDLIB
// IR_DIFFERENCE
// EMIT_JVM_TYPE_ANNOTATIONS
// RENDER_ANNOTATIONS
@@ -1,4 +1,3 @@
// WITH_STDLIB
// TARGET_BACKEND: JVM
enum class SomeEnum {
@@ -1,4 +1,3 @@
// WITH_STDLIB
// !LANGUAGE: +NestedClassesInAnnotations
annotation class Foo(val kind: Kind) {
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
interface A<T> {
open fun foo(t: T) = "A"
}
@@ -1,4 +1,3 @@
// WITH_STDLIB
interface A<T> {
open fun foo(t: T) = "A"
}
@@ -1,4 +1,3 @@
// WITH_STDLIB
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: FUNCTION_REFERENCES
// IGNORE_BACKEND: JS, JS_IR
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class E {
ENTRY
}
@@ -1,4 +1,3 @@
// WITH_STDLIB
interface Named {
val name: String
}
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class E {
I
}
@@ -1,4 +1,3 @@
// WITH_STDLIB
import kotlin.reflect.KProperty1
class Q {
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
package example2
fun box() = Context.OsType.OK.toString()
@@ -1,4 +1,3 @@
// WITH_STDLIB
abstract class Base(val fn: () -> Test)
enum class Test(val ok: String) {
@@ -1,4 +1,3 @@
// WITH_STDLIB
// MODULE: lib
// FILE: A.kt
@@ -1,4 +1,3 @@
// WITH_STDLIB
// MODULE: lib
// FILE: A.kt
@@ -1,4 +1,3 @@
// WITH_STDLIB
// MODULE: lib
// FILE: 1.kt
@@ -1,4 +1,3 @@
// WITH_STDLIB
// MODULE: lib
// FILE: A.kt
@@ -1,4 +1,3 @@
// WITH_STDLIB
// MODULE: lib
// FILE: A.kt
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class A(val a: Int = 1) {
FIRST(),
SECOND(2)
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class Foo(val a: Int = 1, val b: String) {
B(2, "b"),
C(b = "b")
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class Foo(val a: Int = 1, val b: String = "a") {
A(),
B(2, "b"),
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class Foo(val a: Double = 1.0, val b: Double = 1.0) {
A(),
B(2.0, 2.0),
@@ -1,5 +1,4 @@
// CHECK_BYTECODE_LISTING
// WITH_STDLIB
import O.d
@@ -1,5 +1,4 @@
// CHECK_BYTECODE_LISTING
// WITH_STDLIB
enum class E { X }
@@ -1,4 +1,3 @@
// WITH_STDLIB
// IGNORE_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class A {
ONE,
TWO;
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class A {
ONE,
TWO
@@ -1,4 +1,3 @@
// WITH_STDLIB
import A.ONE
enum class A {
@@ -1,4 +1,3 @@
// WITH_STDLIB
import A.ONE
enum class A {
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class A() {
ENTRY(){ override fun t() = "OK"};
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class E {
ENTRY;
@@ -1,4 +1,3 @@
// WITH_STDLIB
// TARGET_BACKEND: JVM
// FILE: Foo.java
@@ -1,4 +1,3 @@
// WITH_STDLIB
// TARGET_BACKEND: JVM
// FILE: Foo.java
@@ -1,4 +1,3 @@
// WITH_STDLIB
// http://youtrack.jetbrains.com/issue/KT-2167
enum class Season {
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM
@@ -1,4 +1,3 @@
// WITH_STDLIB
private var logs = ""
enum class Foo(val text: String) {
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class Game {
ROCK,
PAPER,
@@ -1,4 +1,3 @@
// WITH_STDLIB
// IGNORE_BACKEND: JS
fun f(): String = "O"
fun g(): String = "K"
@@ -1,4 +1,3 @@
// WITH_STDLIB
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_K2: JVM_IR
// K2 status: declaringClass is error for enums since Kotlin 1.9
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class A {
X {
val x = "OK"
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class A {
X {
val k = "K"
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class Test(val str: String = "OK") {
OK
}
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class Test(vararg xs: Int) {
OK;
val values = xs
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class Test(val str: String = "OK") {
OK {
fun foo() {}
@@ -1,4 +1,3 @@
// WITH_STDLIB
// IGNORE_BACKEND: JS
@@ -1,4 +1,3 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR, NATIVE
enum class Test {
@@ -1,4 +1,3 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR, NATIVE
enum class Test(val x: Int, val str: String) {
OK;
@@ -1,4 +1,3 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR, NATIVE
enum class Test(val x: Int, val str: String) {
OK;
@@ -1,4 +1,3 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR, NATIVE
package test
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class Empty
@@ -1,4 +1,3 @@
// WITH_STDLIB
// DONT_TARGET_EXACT_BACKEND: JS
// DONT_TARGET_EXACT_BACKEND: JS_IR
// DONT_TARGET_EXACT_BACKEND: JS_IR_ES6
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class A(
name: String,
ordinal: Int
@@ -1,4 +1,3 @@
// WITH_STDLIB
interface IFoo {
fun foo(): String
}
@@ -1,4 +1,3 @@
// WITH_STDLIB
interface IFoo {
fun foo(): String
}
@@ -1,4 +1,3 @@
// WITH_STDLIB
interface IFoo {
fun foo(): String
}
@@ -1,4 +1,3 @@
// WITH_STDLIB
package test
fun box() = MyEnum.E1.f() + MyEnum.E2.f()
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class Color(val rgb: Int) {
RED(0xff0000),
GREEN(0x00ff00),
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
// IGNORE_BACKEND: WASM
enum class E { OK }
@@ -1,4 +1,3 @@
// WITH_STDLIB
// KT-4423 Enum with function not compiled
// SKIP_MANGLE_VERIFICATION
@@ -1,4 +1,3 @@
// WITH_STDLIB
package foo
enum class X {
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
package test
enum class Season {
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
fun box() = if(Context.operatingSystemType == Context.Companion.OsType.OTHER) "OK" else "fail"
public class Context
@@ -1,4 +1,3 @@
// WITH_STDLIB
// IGNORE_BACKEND: JS
var l = ""
@@ -1,4 +1,3 @@
// WITH_STDLIB
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: WASM
@@ -1,4 +1,3 @@
// WITH_STDLIB
// IGNORE_BACKEND: JS
var l = ""
@@ -1,4 +1,3 @@
// WITH_STDLIB
// DONT_TARGET_EXACT_BACKEND: JS
// DONT_TARGET_EXACT_BACKEND: JS_IR
// DONT_TARGET_EXACT_BACKEND: JS_IR_ES6
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
class A {
enum class E {
OK
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class A {
X {
val x = "OK"
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class A {
X {
val x = "OK"
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class A {
X {
val x = "OK"
@@ -1,4 +1,3 @@
// WITH_STDLIB
class A {
companion object {}
enum class E {
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class Direction() {
NORTH {
val someSpecialValue = "OK"
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class Bar {
ONE,
TWO
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
// SKIP_DCE_DRIVEN
enum class Bar {
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class Test(val x: String, val closure1: () -> String) {
FOO("O", { FOO.x }) {
override val y: String = "K"
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class Test(val x: String, val closure1: () -> String) {
FOO("O", run { { FOO.x } }) {
override val y: String = "K"
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
// SKIP_MANGLE_VERIFICATION
enum class Foo(
val x: String,
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
// SKIP_MANGLE_VERIFICATION
interface Callback {
fun invoke(): String
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class A(val b: String) {
E1("OK"){ override fun t() = b };
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class E(val b: Boolean) {
TRUE(1 == 1)
}
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class ContentType {
PLAIN_TEXT {
@@ -1,4 +1,3 @@
// WITH_STDLIB
interface IFoo {
fun foo(e: En): String
}
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
fun call(f: () -> Unit) {
f()
}
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class X {
B {
val value2 = "K"
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class X {
B {
val value2 = "K"
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class X {
B {
val value2 = "K"
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class X {
B {
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class X {
B {
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class X {
B {
override val value = "OK"
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class X {
B {
override val value2 = "K"
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class X {
B {
override val value2 = "K"
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class X {
B {
val value2 = "K"
@@ -1,4 +1,3 @@
// WITH_STDLIB
fun <T, R> T.letNoInline(fn: (T) -> R) =
fn(this)
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class X {
B {
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class IssueState {
FIXED {
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class ClassTemplate(
// var bug: Int = 1,
var code: Int,
-1
View File
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class State {
_0,
_1,
@@ -1,4 +1,3 @@
// WITH_STDLIB
enum class E {
A;

Some files were not shown because too many files have changed in this diff Show More