Add support for desctructuring of lambda parameters in JVM backend

#KT-5828 In Progress
This commit is contained in:
Denis Zharkov
2016-09-16 16:33:19 +03:00
parent e975d32196
commit e75efc88ff
17 changed files with 332 additions and 15 deletions
@@ -0,0 +1,11 @@
data class A<T, F>(val x: T, val y: F)
fun <X, Y> foo(a: A<X, Y>, block: (A<X, Y>) -> String) = block(a)
fun box(): String {
val x = foo(A("OK", 1)) { (x, y) -> x + (y.toString()) }
if (x != "OK1") return "fail1: $x"
return "OK"
}