Files
kotlin-fork/compiler/testData/ir/irText/expressions/values.fir.kt.txt
T
Nikolay Lunyak bcfafc601e 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>
2023-03-02 10:23:38 +00:00

65 lines
882 B
Kotlin
Vendored

enum class Enum : Enum<Enum> {
private constructor() /* primary */ {
super/*Enum*/<Enum>()
/* <init>() */
}
A = Enum()
fun values(): Array<Enum> /* Synthetic body for ENUM_VALUES */
fun valueOf(value: String): Enum /* Synthetic body for ENUM_VALUEOF */
val entries: EnumEntries<Enum>
get(): EnumEntries<Enum> /* Synthetic body for ENUM_ENTRIES */
}
object A {
private constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
val a: Int
field = 0
get
class Z {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
companion object Companion {
private constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
}
fun test1(): Enum {
return Enum.A
}
fun test2(): A {
return A
}
fun test3(): Int {
return <get-a>()
}
fun test4(): Companion {
return Companion
}