Property <-> Function Conversion: Add/remove 'get'/'is' prefixes automatically

#KT-8812 Fixed
This commit is contained in:
Alexey Sedunov
2015-09-24 13:40:37 +03:00
parent 1b9bbf0bb6
commit 9ec87c01ab
32 changed files with 207 additions and 52 deletions
@@ -0,0 +1,12 @@
// WITH_RUNTIME
package p
import p.getFoo
class A(val n: Int)
fun A.<caret>getFoo(): Boolean = n > 1
fun test() {
val t = A::getFoo
}