KT-13830: support case when LHS of augmented assignment is something different than qualified expression or array access
This commit is contained in:
committed by
Alexey Andreev
parent
afe8244183
commit
30c2c85c94
@@ -0,0 +1,19 @@
|
||||
package foo
|
||||
|
||||
object Host {
|
||||
var result: String = ""
|
||||
get
|
||||
private set
|
||||
|
||||
operator fun plusAssign(s: String) {
|
||||
result += s
|
||||
}
|
||||
}
|
||||
|
||||
fun bar() = Host
|
||||
|
||||
fun box(): String {
|
||||
bar() += "O"
|
||||
bar() += "K"
|
||||
return Host.result
|
||||
}
|
||||
Reference in New Issue
Block a user