Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/resolve/withAs.fir.kt
T

10 lines
228 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
fun foo() {}
fun foo(s: String) {}
fun bar(f: () -> Unit) = 1
fun bar(f: (String) -> Unit) = 2
val x1 = <!UNRESOLVED_REFERENCE!>::foo<!> as () -> Unit
val x2 = bar(::foo as (String) -> Unit)