Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/callableReference/property/classFromClass.kt
T
2015-04-29 16:33:24 +02:00

13 lines
225 B
Kotlin

// !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
}
}