Shorten References: Do not shorten qualified expression if receiver values are changed

#KT-5180 Fixed
This commit is contained in:
Alexey Sedunov
2014-06-19 16:17:46 +04:00
parent 5e2c2b4eca
commit 53c49b6333
6 changed files with 35 additions and 4 deletions
@@ -6,5 +6,5 @@ fun Z.foo(): Int {
}
fun Z.i(): Int {
return a
return this.a
}
@@ -6,5 +6,5 @@ fun Z.foo(): Int {
}
fun Z.i(): Int {
return a + a
return this.a + a
}