mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
11 lines
203 B
Kotlin
Vendored
11 lines
203 B
Kotlin
Vendored
// !LANGUAGE: +NewInference
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
fun foo(x: Int) {}
|
|
fun foo(y: String) {}
|
|
|
|
fun <T> bar(f: (T) -> Unit) {}
|
|
|
|
fun test() {
|
|
bar(::<!DEBUG_INFO_MISSING_UNRESOLVED!>foo<!>)
|
|
} |