Simplify for intention: apply name validator to prevent conflicts
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user