KT-36956 fix back-end part in JVM and JVM_IR
PSI2IR: deparenthesize LHS expression when generating assignment receiver. FE: record 'set' operator call for code generation.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class A<T>(private val value: T) {
|
||||
operator fun get(i: Int) = value
|
||||
operator fun set(i: Int, v: T) {}
|
||||
}
|
||||
|
||||
val aFloat = A<Float>(0.0f)
|
||||
|
||||
val aInt = (aFloat[1])--
|
||||
Reference in New Issue
Block a user