Destructure intention now handles the case with manual destructuring inside #KT-13943 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
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>{
|
||||
val (x, y) = it
|
||||
x + y
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
data class XY(val x: String, val y: String)
|
||||
|
||||
fun convert(xy: XY, foo: (XY) -> String) = foo(xy)
|
||||
|
||||
fun foo(xy: XY) = convert(xy) {
|
||||
(x, y) ->
|
||||
x + y
|
||||
}
|
||||
Reference in New Issue
Block a user