Files
kotlin-fork/compiler/testData/diagnostics/tests/overload/kt7068.kt
T

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()
}
}