20 lines
304 B
Kotlin
Vendored
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)
|
|
}
|