Do not add special names to scopes #KT-14319 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-10-13 12:35:00 +03:00
parent 7263109413
commit 7a41d13b41
6 changed files with 35 additions and 2 deletions
@@ -0,0 +1,10 @@
data class XY(val x: Int, val y: Int)
fun foo(list: List<XY>) {
for ((x1, y1) in list) {
for ((x2, y2) in list) {
if (x1 == y2 && x2 == y1) return
}
list.map { (x3, y3) -> x3 + y3 }
}
}