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,20 @@
package test
trait T {
val foo: Boolean
}
open class A(val n: Int): T {
override val foo: Boolean
get() = n > 1
}
class B: A(1) {
override val <caret>foo: Boolean
get() = true
}
fun test() {
val a = A(1).foo
val b = B().foo
}