"Simplify using destructuring declaration" is now applicable for function literals #KT-13941 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-10-03 12:18:29 +03:00
parent 42aea59253
commit df0cf3da84
19 changed files with 193 additions and 9 deletions
@@ -0,0 +1,11 @@
// WITH_RUNTIME
fun foo() {
val list = listOf(MyClass(1, 2, 3), MyClass(2, 3, 4))
list.forEach { klass<caret> ->
val a = klass.a
val b = klass.b
}
}
data class MyClass(val a: Int, val b: Int, val c: Int)