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
@@ -1,9 +1,9 @@
class A(val n: Int) {
fun foo(): Boolean {
fun getFoo(): Boolean {
return n > 1
}
}
fun test() {
val t = A(1).foo()
val t = A(1).getFoo()
}