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

18 lines
290 B
Kotlin
Vendored

// FIR_IDENTICAL
// !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
}
}