Files
kotlin-fork/idea/testData/intentions/convertPropertyToFunction/var.kt
T
2015-02-05 23:12:38 +03:00

10 lines
172 B
Kotlin
Vendored

// IS_APPLICABLE: false
class A(var n: Int) {
var <caret>foo: Int
get() = n + 1
set(value: Int) { n = value - 1 }
}
fun test() {
val t = A(1).foo
}