Move refactoring available on cut/paste declarations from an object to top-level
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
package source
|
||||
|
||||
class X {
|
||||
companion object {
|
||||
|
||||
|
||||
fun other() {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
|
||||
fun f() {
|
||||
bar++
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fun foo() {
|
||||
X.other()
|
||||
bar++
|
||||
}
|
||||
|
||||
var bar = 1
|
||||
|
||||
Reference in New Issue
Block a user