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 {
fun other() {
foo()
}
}
fun f() {
bar++
}
}
fun foo() {
X.other()
bar++
}
var bar = 1