Files
kotlin-fork/compiler/testData/ir/irText/expressions/values.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

62 lines
781 B
Plaintext
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 */
}
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
}