"Simplify using destructuring declaration" is now applicable for function literals #KT-13941 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
data class My(val first: String, val second: Int)
|
||||
|
||||
fun foo(list: List<My>) {
|
||||
list.forEach { my<caret> ->
|
||||
println(my.second)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user