Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/function/longQualifiedNameGeneric.kt
T

20 lines
304 B
Kotlin
Vendored

// FIR_IDENTICAL
// !CHECK_TYPE
// FILE: a.kt
package a.b.c
class D<E, F> {
fun foo(e: E, f: F) = this
}
// FILE: b.kt
import kotlin.reflect.KFunction3
fun main() {
val x = a.b.c.D<String, Int>::foo
checkSubtype<KFunction3<a.b.c.D<String, Int>, String, Int, a.b.c.D<String, Int>>>(x)
}