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,7 @@
// "Convert property getter to initializer" "false"
// ERROR: Expected declaration must not have a body
// ACTION: Convert to block body
expect class C {
val p: Int
<caret>get() = 1
}