Improve Create property from Usage
Place generated property next to other properties #KT-14886 Fixed
This commit is contained in:
+6
-6
@@ -1,11 +1,11 @@
|
||||
private val A.foo: Boolean
|
||||
get() {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
// "Create extension property 'A.foo'" "true"
|
||||
class A(val n: Int)
|
||||
|
||||
class B {
|
||||
val A.test: Boolean get() = foo
|
||||
}
|
||||
|
||||
private val A.foo: Boolean
|
||||
get() {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
+7
-7
@@ -1,3 +1,9 @@
|
||||
private var A.foo: Boolean
|
||||
get() {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
set() {}
|
||||
|
||||
// "Create extension property 'A.foo'" "true"
|
||||
class A(val n: Int)
|
||||
|
||||
@@ -7,10 +13,4 @@ class B {
|
||||
set(v: Boolean) {
|
||||
foo = v
|
||||
}
|
||||
}
|
||||
|
||||
private var A.foo: Boolean
|
||||
get() {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
set() {}
|
||||
}
|
||||
Reference in New Issue
Block a user