KT-7068 None of the following functions can be called with two functions with extention function parameter
#KT-7068 Fixed
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun withLambda(block : Int.(String) -> Unit) {
|
||||
}
|
||||
|
||||
fun withLambda(o : Int, block : Int.(String) -> Unit) {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
withLambda {
|
||||
it.length()
|
||||
}
|
||||
|
||||
withLambda { r -> // no error should be here
|
||||
r.length()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user