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() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user