Rename: Forbid rename of synthetic declaration references

#KT-20241 Fixed
This commit is contained in:
Alexey Sedunov
2018-03-02 14:56:32 +03:00
parent 9761e33110
commit e145a64d50
12 changed files with 102 additions and 0 deletions
@@ -0,0 +1,5 @@
data class XYZ(val x: Int, val y: Int, val z: Int)
fun test() {
XYZ(1, 2, 3)./*rename*/copy(x = 10)
}
@@ -0,0 +1,5 @@
data class XYZ(val x: Int, val y: Int, val z: Int)
fun test() {
XYZ(1, 2, 3)./*rename*/copy(x = 10)
}
@@ -0,0 +1,7 @@
{
"type": "AUTO_DETECT",
"mainFile": "test.kt",
"newName": "copyNew",
"withRuntime": "true",
"hint": "Rename is not applicable to synthetic declaration"
}