Rename: Allow renaming class by constructor delegation call referencing primary constructor

#KT-8860 Fixed
This commit is contained in:
Alexey Sedunov
2016-05-24 19:57:28 +03:00
parent e89e809dc7
commit ff4c16d342
6 changed files with 20 additions and 5 deletions
@@ -0,0 +1,3 @@
class Bar constructor(p: Int) {
constructor(p: Int) : this(p + 1)
}
@@ -0,0 +1,3 @@
class Foo constructor(p: Int) {
constructor(p: Int) : /*rename*/this(p + 1)
}
@@ -0,0 +1,5 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test.kt",
"newName": "Bar"
}