Rename: Support renaming class by short reference to companion object
#KT-16108 Fixed
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user