Files
kotlin-fork/idea/testData/quickfix/variables/changeMutability/canBeVal/delegatedProperty.kt
T
2018-06-19 12:48:13 +03:00

12 lines
233 B
Kotlin
Vendored

// "Change to val" "true"
import kotlin.reflect.KProperty
fun test() {
var foo: String by <caret>Delegate()
}
class Delegate {
operator fun getValue(thisRef: Any?, property: KProperty<*>): String {
return ""
}
}