Intentions: function <-> property conversion

This commit is contained in:
Alexey Sedunov
2015-01-28 13:58:40 +03:00
parent 15ebbdb349
commit 03e076aba3
87 changed files with 1488 additions and 54 deletions
@@ -0,0 +1,10 @@
// 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
}