[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:
Ilya Gorbunov
2024-02-07 03:26:25 +01:00
committed by Space Team
parent 947b825d77
commit 86d5e83f4b
8 changed files with 11 additions and 18 deletions
@@ -9,9 +9,5 @@ package kotlin.enums
@ExperimentalStdlibApi
@PublishedApi
internal actual inline fun <reified T : Enum<T>> enumEntriesIntrinsic(): EnumEntries<T> {
/*
* Implementation note: this body will be replaced with `throw NotImplementedException()` the moment
* all backends starts intrinsifying this call.
*/
return enumEntries(enumValues<T>())
throw NotImplementedError() // implemented as intrinsic
}