Copy: Support class copying

#KT-8180 Fixed
 #KT-9054 Fixed
This commit is contained in:
Alexey Sedunov
2017-05-11 21:28:49 +03:00
parent 405a28648f
commit 92446df14a
43 changed files with 989 additions and 124 deletions
@@ -0,0 +1,12 @@
package bar
import foo.B
fun foo() {
}
class A {
val a: A = A()
val b: B = B()
}
@@ -0,0 +1,11 @@
package foo
class A {
val a: A = A()
val b: B = B()
}
class B {
val a: A = A()
val b: B = B()
}
@@ -0,0 +1,5 @@
package bar
fun foo() {
}
@@ -0,0 +1,11 @@
package foo
class <caret>A {
val a: A = A()
val b: B = B()
}
class B {
val a: A = A()
val b: B = B()
}
@@ -0,0 +1,4 @@
{
"mainFile": "foo/test.kt",
"targetPackage": "bar"
}