Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/property/classFromClass.kt
T
2015-05-26 14:27:40 +03:00

13 lines
225 B
Kotlin
Vendored

// !DIAGNOSTICS:-UNUSED_VARIABLE
import kotlin.reflect.*
class A(var g: A) {
val f: Int = 0
fun test() {
val fRef: KMemberProperty<A, Int> = ::f
val gRef: KMutableMemberProperty<A, A> = ::g
}
}