61d0bcdf76
#KT-7068 Fixed
17 lines
277 B
Kotlin
Vendored
17 lines
277 B
Kotlin
Vendored
// !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()
|
|
}
|
|
} |