KT-13830: support case when LHS of augmented assignment is something different than qualified expression or array access

This commit is contained in:
Alexey Andreev
2016-09-27 19:32:22 +03:00
committed by Alexey Andreev
parent afe8244183
commit 30c2c85c94
4 changed files with 81 additions and 4 deletions
@@ -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
}