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

15 lines
207 B
Kotlin
Vendored

// FIR_IDENTICAL
// !CHECK_TYPE
import kotlin.reflect.KFunction1
class A<T>(val t: T) {
fun foo(): T = t
}
fun bar() {
val x = A<String>::foo
checkSubtype<KFunction1<A<String>, String>>(x)
}