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

34 lines
572 B
Kotlin
Vendored

class A<T : Any?> {
constructor(value: T) /* primary */ {
super/*Any*/()
/* <init>() */
}
private val value: T
field = value
private get
operator fun get(i: Int): T {
return <this>.<get-value>()
}
operator fun set(i: Int, v: T) {
}
}
val aFloat: A<Float>
field = A<Float>(value = 0.0F)
get
val aInt: Float
field = { // BLOCK
val tmp0_array: A<Float> = <get-aFloat>()
val tmp1_index0: Int = 1
val tmp2: Float = tmp0_array.get(i = tmp1_index0)
tmp0_array.set(i = tmp1_index0, v = tmp2.dec())
tmp2
}
get