[NI] Preserve name of parameters for functional types
This commit is contained in:
+8
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user