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