Fix MoveProperty intention: better property placement
Property is placed now before first property, or at the beginning of class body if no properties found. #KT-18044 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class TestClass(val <caret>text: String) {
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
|
||||
val p1 = 0
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class TestClass(text: String) {
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
|
||||
val text = text
|
||||
val p1 = 0
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class TestClass(val <caret>text: String) {
|
||||
|
||||
val p1 = 0
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class TestClass(text: String) {
|
||||
|
||||
val text = text
|
||||
val p1 = 0
|
||||
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user