"Simplify using destructuring declaration" is now applicable for function literals #KT-13941 Fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
data class XY(val x: String, val y: String)
|
||||
|
||||
fun foo(list: List<XY>) = list.fold("") { prev, (x, y) -> prev + x + y }
|
||||
Reference in New Issue
Block a user