Files
kotlin-fork/compiler/testData/ir/irText/expressions/objectAsCallable.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

43 lines
665 B
Kotlin
Vendored

object A {
private constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
enum class En : Enum<En> {
private constructor() /* primary */ {
super/*Enum*/<En>()
/* <init>() */
}
X = En()
fun values(): Array<En> /* Synthetic body for ENUM_VALUES */
fun valueOf(value: String): En /* Synthetic body for ENUM_VALUEOF */
val entries: EnumEntries<En>
get(): EnumEntries<En> /* Synthetic body for ENUM_ENTRIES */
}
operator fun A.invoke(i: Int): Int {
return i
}
operator fun En.invoke(i: Int): Int {
return i
}
val test1: Int
field = A.invoke(i = 42)
get
val test2: Int
field = En.X.invoke(i = 42)
get