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

40 lines
568 B
Plaintext
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 */
}
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