JS: deparenthesize LHS of assignment before choosing appropriate AccessTranslator. Fix KT-15169

This commit is contained in:
Alexey Andreev
2016-12-12 15:00:00 +03:00
parent 52347aa901
commit d9cf15a665
10 changed files with 52 additions and 36 deletions
@@ -0,0 +1,13 @@
@Target(AnnotationTarget.EXPRESSION)
annotation class Annotation
fun box(): String {
var v = 0
@Annotation v += 1 + 2
if (v != 3) return "fail1"
@Annotation v = 4
if (v != 4) return "fail2"
return "OK"
}