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
@@ -0,0 +1,7 @@
trait T : Iterable<String>
abstract class C : T {
fun foo(c: C) {
if (<selection>c.any { it.size > 1 }</selection>) {}
}
}
@@ -0,0 +1,7 @@
trait T : Iterable<String>
abstract class C : T {
fun foo(c: C) {
if (c.any { it.size > 1 }) {}
}
}