15 lines
263 B
Kotlin
Vendored
15 lines
263 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
|
|
|
|
fun foo(s: String) {}
|
|
|
|
object Scope {
|
|
fun foo(a: Int) {}
|
|
fun foo(b: Boolean) {}
|
|
|
|
fun <T> bar(f: (T) -> Unit): T = TODO()
|
|
|
|
fun test() {
|
|
val s: String = bar(::foo)
|
|
}
|
|
} |