Rename: Support inplace rename of class via primary constructor
#KT-20146 Fixed #KT-21371 Fixed
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
open class Bar(val foo: Boolean)
|
||||
class E : Bar(false)
|
||||
@@ -0,0 +1,2 @@
|
||||
open class Foo/*rename*/(val foo: Boolean)
|
||||
class E : Foo(false)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"type": "AUTO_DETECT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "Bar"
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
open class Bar(val foo: Boolean)
|
||||
class E : Bar(false)
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
open class Foo /*rename*/(val foo: Boolean)
|
||||
class E : Foo(false)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"type": "AUTO_DETECT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "Bar"
|
||||
}
|
||||
Reference in New Issue
Block a user