Do not generate fields for unused suspend lambda parameters
This also allows us to not spill them in the lambda. But, disable this optimization for local named functions. #KT-16222 In progress
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ data class Data(val x: String, val y: Int, val z: Int = 0)
|
||||
|
||||
suspend fun test() {
|
||||
foo(Data("A", 1)) { str, (x, _, z), i ->
|
||||
|
||||
println(str + x + z + i + this)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user