Copy: Support class copying
#KT-8180 Fixed #KT-9054 Fixed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package bar
|
||||
|
||||
class A {
|
||||
fun test() {
|
||||
A.testCompanion()
|
||||
testCompanion()
|
||||
Companion.testCompanion()
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun testCompanion() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package foo
|
||||
|
||||
class A {
|
||||
fun test() {
|
||||
A.testCompanion()
|
||||
testCompanion()
|
||||
Companion.testCompanion()
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun testCompanion() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package foo
|
||||
|
||||
class <caret>A {
|
||||
fun test() {
|
||||
A.testCompanion()
|
||||
testCompanion()
|
||||
Companion.testCompanion()
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun testCompanion() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"mainFile": "foo/test.kt",
|
||||
"targetPackage": "bar"
|
||||
}
|
||||
Reference in New Issue
Block a user