Extract Function: Allow to choose between function and property extraction
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// EXTRACT_AS_PROPERTY
|
||||
|
||||
class A(val n: Int = 1) {
|
||||
val m: Int = 2
|
||||
// SIBLING:
|
||||
fun foo(): Int {
|
||||
return <selection>m + n + 1</selection>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user