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

16 lines
293 B
Kotlin

// !DIAGNOSTICS:-UNUSED_VARIABLE
import kotlin.reflect.*
class A {
fun test() {
val fooRef: KExtensionProperty<A, String> = ::foo
val barRef: KMutableExtensionProperty<A, Int> = ::bar
}
}
val A.foo: String get() = ""
var A.bar: Int
get() = 42
set(value) { }