Simplify for intention: apply name validator to prevent conflicts

This commit is contained in:
Mikhail Glukhikh
2016-05-27 18:00:31 +03:00
parent 792b37bce4
commit 7a24429b53
5 changed files with 48 additions and 3 deletions
@@ -0,0 +1,12 @@
// WITH_RUNTIME
data class XY(val x: Int, val y: Int)
fun foo(list: List<XY>) {
val y = list.size
for (<caret>element in list) {
val x = element.x + element.y
println(x)
println(y)
}
}