Move refactoring available on cut/paste declarations from an object to top-level

This commit is contained in:
Valentin Kipyatkov
2017-06-03 13:55:09 +03:00
parent b143b1be42
commit cfa442a42a
18 changed files with 250 additions and 23 deletions
@@ -0,0 +1,24 @@
package source
class X {
companion object {
<selection>
fun foo() {
other()
bar++
}
var bar = 1
</selection>
fun other() {
foo()
}
}
fun f() {
bar++
}
}
<caret>