[NI] Preserve name of parameters for functional types

This commit is contained in:
Mikhail Zarechenskiy
2017-06-27 19:23:11 +03:00
parent 5ec8d4920f
commit 39349abd39
6 changed files with 33 additions and 1 deletions
@@ -0,0 +1,8 @@
fun <T> test(a: T, b: T, operation: (x: T) -> T) {
operation(if (3 > 2) a else b)
}
fun box(): String {
test(1, 1, { it })
return "OK"
}