Convert reference to lambda: fix it works correctly when referenced function has default argument
#KT-17222 Fixed #KT-24138 Fixed #KT-39532
This commit is contained in:
committed by
Roman Golyshev
parent
bc34f7f7f5
commit
2fd3af73eb
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
fun test() {
|
||||
foo2 { i, j -> convert3(i, j) }
|
||||
}
|
||||
|
||||
fun foo2(convert: (Int, Int) -> Unit) {}
|
||||
|
||||
fun convert3(i: Int, j: Int, k: Int = 0) {}
|
||||
Reference in New Issue
Block a user