[stdlib] Remove bootstrap implementation of enumEntriesIntrinsic
It should have been already implemented as intrinsic in all backends. Do not test enumEntries intrinsic in the old JVM BE. KT-53154 Co-authored-by: Alexander Udalov <alexander.udalov@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
947b825d77
commit
86d5e83f4b
@@ -1,5 +1,5 @@
|
|||||||
// !LANGUAGE: -EnumEntries
|
// !LANGUAGE: -EnumEntries
|
||||||
// IGNORE_BACKEND: JS_IR, JS_IR_ES6, WASM
|
// IGNORE_BACKEND: JS_IR, JS_IR_ES6, WASM, JVM
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
|
|
||||||
import kotlin.enums.*
|
import kotlin.enums.*
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
// IGNORE_BACKEND_MULTI_MODULE: JVM_MULTI_MODULE_OLD_AGAINST_IR
|
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_OLD_AGAINST_IR, JVM_MULTI_MODULE_IR_AGAINST_OLD
|
||||||
|
// IGNORE_BACKEND: JVM
|
||||||
// NO_CHECK_LAMBDA_INLINING
|
// NO_CHECK_LAMBDA_INLINING
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !OPT_IN: kotlin.ExperimentalStdlibApi
|
// !OPT_IN: kotlin.ExperimentalStdlibApi
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// IGNORE_BACKEND_MULTI_MODULE: JVM_MULTI_MODULE_OLD_AGAINST_IR
|
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_OLD_AGAINST_IR, JVM_MULTI_MODULE_IR_AGAINST_OLD
|
||||||
|
// IGNORE_BACKEND: JVM
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !OPT_IN: kotlin.ExperimentalStdlibApi
|
// !OPT_IN: kotlin.ExperimentalStdlibApi
|
||||||
// FILE: 1.kt
|
// FILE: 1.kt
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM_IR
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_MULTI_MODULE: JVM_MULTI_MODULE_IR_AGAINST_OLD
|
||||||
// NO_CHECK_LAMBDA_INLINING
|
// NO_CHECK_LAMBDA_INLINING
|
||||||
// !OPT_IN: kotlin.ExperimentalStdlibApi
|
// !OPT_IN: kotlin.ExperimentalStdlibApi
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM_IR
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_MULTI_MODULE: JVM_MULTI_MODULE_IR_AGAINST_OLD
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !OPT_IN: kotlin.ExperimentalStdlibApi
|
// !OPT_IN: kotlin.ExperimentalStdlibApi
|
||||||
// FILE: test/Z.java
|
// FILE: test/Z.java
|
||||||
|
|||||||
@@ -9,9 +9,6 @@ package kotlin.enums
|
|||||||
@ExperimentalStdlibApi
|
@ExperimentalStdlibApi
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
internal actual inline fun <reified T : Enum<T>> enumEntriesIntrinsic(): EnumEntries<T> {
|
internal actual inline fun <reified T : Enum<T>> enumEntriesIntrinsic(): EnumEntries<T> {
|
||||||
/*
|
throw NotImplementedError() // implemented as intrinsic
|
||||||
* Implementation note: this body will be replaced with `throw NotImplementedException()` the moment
|
|
||||||
* all backends starts intrinsifying this call.
|
|
||||||
*/
|
|
||||||
return enumEntries(enumValues<T>())
|
|
||||||
}
|
}
|
||||||
@@ -9,9 +9,5 @@ package kotlin.enums
|
|||||||
@ExperimentalStdlibApi
|
@ExperimentalStdlibApi
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
internal actual inline fun <reified T : Enum<T>> enumEntriesIntrinsic(): EnumEntries<T> {
|
internal actual inline fun <reified T : Enum<T>> enumEntriesIntrinsic(): EnumEntries<T> {
|
||||||
/*
|
throw NotImplementedError() // implemented as intrinsic
|
||||||
* Implementation note: this body will be replaced with `throw NotImplementedException()` the moment
|
|
||||||
* all backends starts intrinsifying this call.
|
|
||||||
*/
|
|
||||||
return enumEntries(enumValues<T>())
|
|
||||||
}
|
}
|
||||||
@@ -9,9 +9,5 @@ package kotlin.enums
|
|||||||
@ExperimentalStdlibApi
|
@ExperimentalStdlibApi
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
internal actual inline fun <reified T : Enum<T>> enumEntriesIntrinsic(): EnumEntries<T> {
|
internal actual inline fun <reified T : Enum<T>> enumEntriesIntrinsic(): EnumEntries<T> {
|
||||||
/*
|
throw NotImplementedError() // implemented as intrinsic
|
||||||
* Implementation note: this body will be replaced with `throw NotImplementedException()` the moment
|
|
||||||
* all backends starts intrinsifying this call.
|
|
||||||
*/
|
|
||||||
return enumEntries(enumValues<T>())
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user