Introduce "Convert property getter to initializer" intention

#KT-13854 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-08-03 18:04:15 +03:00
committed by Mikhail Glukhikh
parent 6fbf6b0a93
commit 1898df3fb7
34 changed files with 223 additions and 0 deletions
@@ -0,0 +1,3 @@
class A {
val foo: Int = <spot>1</spot>
}
@@ -0,0 +1,4 @@
class A {
val foo: Int
<spot>get() = 1</spot>
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention converts a property getter to to a initializer.
</body>
</html>