Extract Function: Allow to choose between function and property extraction
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// EXTRACT_AS_PROPERTY
|
||||
|
||||
val n: Int = 1
|
||||
|
||||
// SIBLING:
|
||||
fun foo(): Int {
|
||||
return i
|
||||
}
|
||||
|
||||
private val i: Int
|
||||
get() {
|
||||
return n + 1
|
||||
}
|
||||
Reference in New Issue
Block a user