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

18 lines
280 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun withLambda(block : Int.(String) -> Unit) {
}
fun withLambda(block : Int.(String, String) -> Unit) {
}
fun test() {
withLambda { r ->
r.length
}
withLambda { x, y ->
x.length + y.length
}
}