Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/generic/kt11075.kt
T
Ivan Kochurkin a0510f4a67 [FIR] Fixed Replace ConeTypeVariable on ConeTypeParameter ^KT-51017
in AbstractConeCallConflictResolver.computeParameterTypes
2022-02-07 17:21:59 +03:00

12 lines
372 B
Kotlin
Vendored

// FIR_IDENTICAL
// 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> = TestCallableReferences::foo
}