Rename: Support renaming class by short reference to companion object

#KT-16108 Fixed
This commit is contained in:
Alexey Sedunov
2017-02-16 15:22:01 +03:00
parent 834cdd63ab
commit 871d42f05a
9 changed files with 184 additions and 30 deletions
@@ -0,0 +1,9 @@
class Bar {
companion object {
val VALUE = 42
}
}
fun main(args: Array<String>) {
println(Bar.VALUE)
}
@@ -0,0 +1,9 @@
class Foo {
companion object {
val VALUE = 42
}
}
fun main(args: Array<String>) {
println(/*rename*/Foo.VALUE)
}
@@ -0,0 +1,5 @@
{
"type": "SHORT_COMPANION_REFERENCE",
"mainFile": "test.kt",
"newName": "Bar"
}