Introduce "Convert property getter to initializer" intention
#KT-13854 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
6fbf6b0a93
commit
1898df3fb7
+7
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user