Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/callableReference/property/genericClass.kt
T
Alexander Udalov aa4d6a4ea7 Support :: references to properties in frontend
#KT-1183 In Progress
2014-07-02 01:26:18 +04:00

13 lines
229 B
Kotlin

class A<T>(val t: T) {
val foo: T = t
}
fun bar() {
val x = A<String>::foo
x : KMemberProperty<A<String>, String>
x : KMemberProperty<A<String>, Any?>
val y = A<*>::foo
y : KMemberProperty<A<*>, Any?>
}