Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/generic/kt11075.fir.kt
T

11 lines
382 B
Kotlin
Vendored

// KT-11075 NONE_APPLICABLE reported for callable reference to an overloaded generic function with expected type provided
object TestCallableReferences {
fun <A> foo(x: A) = x
fun <B> foo(x: List<B>) = x
fun test0(): (String) -> String = TestCallableReferences::foo
fun <T> test1(): (List<T>) -> List<T> = <!UNRESOLVED_REFERENCE!>TestCallableReferences::foo<!>
}