Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/genericClassFromTopLevel.kt
T
Alexander Udalov c4b4fa750c Resolve callable reference expressions
#KT-1183 In Progress
2013-04-22 17:59:31 +04:00

10 lines
133 B
Kotlin

class A<T>(val t: T) {
fun foo(): T = t
}
fun bar() {
val x = A<String>::foo
x : KMemberFunction0<A<String>, String>
}