mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
15 lines
274 B
Kotlin
Vendored
15 lines
274 B
Kotlin
Vendored
// !LANGUAGE: +NewInference
|
|
// !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)
|
|
}
|
|
} |