mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
14 lines
219 B
Kotlin
Vendored
14 lines
219 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
import kotlin.reflect.KFunction1
|
|
|
|
class A<T>(val t: T) {
|
|
fun foo(): T = t
|
|
}
|
|
|
|
fun bar() {
|
|
val x = A<String>::foo
|
|
|
|
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><KFunction1<A<String>, String>>(x)
|
|
}
|