Migration: header->expect & impl->actual in IDEA test data
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C(n: Int, b: Boolean)
|
||||
expect class C(n: Int, b: Boolean)
|
||||
|
||||
fun test() {
|
||||
C(1, false)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(s: String) {
|
||||
actual class C(s: String) {
|
||||
constructor(n: Int, b: Boolean): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(n: Int, b: Boolean) {
|
||||
actual class C(n: Int, b: Boolean) {
|
||||
constructor(s: String): this(1, false)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class <caret>C(n: Int)
|
||||
expect class <caret>C(n: Int)
|
||||
|
||||
fun test() {
|
||||
C(1)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(s: String) {
|
||||
actual class C(s: String) {
|
||||
constructor(n: Int): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(n: Int) {
|
||||
actual class C(n: Int) {
|
||||
constructor(s: String): this(1)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C(n: Int)
|
||||
expect class C(n: Int)
|
||||
|
||||
fun test() {
|
||||
C(1)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(n: Int)
|
||||
actual class C(n: Int)
|
||||
|
||||
fun test() {
|
||||
C(1)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(n: Int)
|
||||
actual class C(n: Int)
|
||||
|
||||
fun test() {
|
||||
C(1)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class <caret>C
|
||||
expect class <caret>C
|
||||
|
||||
fun test() {
|
||||
C()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C()
|
||||
actual class C()
|
||||
|
||||
fun test() {
|
||||
C()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C
|
||||
actual class C
|
||||
|
||||
fun test() {
|
||||
C()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C(s: String) {
|
||||
expect class C(s: String) {
|
||||
constructor(n: Int, b: Boolean): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(s: String) {
|
||||
actual class C(s: String) {
|
||||
constructor(n: Int, b: Boolean): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(n: Int, b: Boolean) {
|
||||
actual class C(n: Int, b: Boolean) {
|
||||
constructor(s: String): this(1, false)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C(s: String) {
|
||||
expect class C(s: String) {
|
||||
<caret>constructor(n: Int): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(s: String) {
|
||||
actual class C(s: String) {
|
||||
constructor(n: Int): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(n: Int) {
|
||||
actual class C(n: Int) {
|
||||
constructor(s: String): this(1)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C {
|
||||
expect class C {
|
||||
fun foo()
|
||||
fun baz(n: Int)
|
||||
fun bar(n: Int)
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo() { }
|
||||
impl fun baz(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual class C {
|
||||
actual fun foo() { }
|
||||
actual fun baz(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
}
|
||||
|
||||
fun test(c: C) {
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo() { }
|
||||
impl fun baz(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual class C {
|
||||
actual fun foo() { }
|
||||
actual fun baz(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
}
|
||||
|
||||
fun test(c: C) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C {
|
||||
expect class C {
|
||||
fun foo()
|
||||
fun <caret>foo(n: Int)
|
||||
fun bar(n: Int)
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo() { }
|
||||
impl fun foo(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual class C {
|
||||
actual fun foo() { }
|
||||
actual fun foo(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
}
|
||||
|
||||
fun test(c: C) {
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo() { }
|
||||
impl fun foo(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual class C {
|
||||
actual fun foo() { }
|
||||
actual fun foo(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
}
|
||||
|
||||
fun test(c: C) {
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
header fun foo()
|
||||
header fun baz(n: Int)
|
||||
header fun bar(n: Int)
|
||||
expect fun foo()
|
||||
expect fun baz(n: Int)
|
||||
expect fun bar(n: Int)
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
impl fun foo() { }
|
||||
impl fun baz(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual fun foo() { }
|
||||
actual fun baz(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
impl fun foo() { }
|
||||
impl fun baz(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual fun foo() { }
|
||||
actual fun baz(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
header fun foo()
|
||||
header fun <caret>foo(n: Int)
|
||||
header fun bar(n: Int)
|
||||
expect fun foo()
|
||||
expect fun <caret>foo(n: Int)
|
||||
expect fun bar(n: Int)
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
impl fun foo() { }
|
||||
impl fun foo(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual fun foo() { }
|
||||
actual fun foo(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
impl fun foo() { }
|
||||
impl fun foo(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual fun foo() { }
|
||||
actual fun foo(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C {
|
||||
expect class C {
|
||||
fun foo()
|
||||
fun baz(n: Int)
|
||||
fun bar(n: Int)
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo() { }
|
||||
impl fun baz(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual class C {
|
||||
actual fun foo() { }
|
||||
actual fun baz(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
}
|
||||
|
||||
fun test(c: C) {
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo() { }
|
||||
impl fun baz(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual class C {
|
||||
actual fun foo() { }
|
||||
actual fun baz(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
}
|
||||
|
||||
fun test(c: C) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C {
|
||||
expect class C {
|
||||
fun foo()
|
||||
fun foo(n: Int)
|
||||
fun bar(n: Int)
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo() { }
|
||||
impl fun <caret>foo(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual class C {
|
||||
actual fun foo() { }
|
||||
actual fun <caret>foo(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
}
|
||||
|
||||
fun test(c: C) {
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo() { }
|
||||
impl fun foo(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual class C {
|
||||
actual fun foo() { }
|
||||
actual fun foo(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
}
|
||||
|
||||
fun test(c: C) {
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
header fun foo()
|
||||
header fun baz(n: Int)
|
||||
header fun bar(n: Int)
|
||||
expect fun foo()
|
||||
expect fun baz(n: Int)
|
||||
expect fun bar(n: Int)
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
impl fun foo() { }
|
||||
impl fun baz(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual fun foo() { }
|
||||
actual fun baz(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
impl fun foo() { }
|
||||
impl fun baz(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual fun foo() { }
|
||||
actual fun baz(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
header fun foo()
|
||||
header fun foo(n: Int)
|
||||
header fun bar(n: Int)
|
||||
expect fun foo()
|
||||
expect fun foo(n: Int)
|
||||
expect fun bar(n: Int)
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
impl fun foo() { }
|
||||
impl fun <caret>foo(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual fun foo() { }
|
||||
actual fun <caret>foo(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
impl fun foo() { }
|
||||
impl fun foo(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual fun foo() { }
|
||||
actual fun foo(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C(n: Int, b: Boolean)
|
||||
expect class C(n: Int, b: Boolean)
|
||||
|
||||
fun test() {
|
||||
C(1, false)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(s: String) {
|
||||
actual class C(s: String) {
|
||||
constructor(n: Int, b: Boolean): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(n: Int, b: Boolean) {
|
||||
actual class C(n: Int, b: Boolean) {
|
||||
constructor(s: String): this(1, false)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C(n: Int)
|
||||
expect class C(n: Int)
|
||||
|
||||
fun test() {
|
||||
C(1)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(s: String) {
|
||||
actual class C(s: String) {
|
||||
constructor(n: Int): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C<caret>(n: Int) {
|
||||
actual class C<caret>(n: Int) {
|
||||
constructor(s: String): this(1)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C(n: Int)
|
||||
expect class C(n: Int)
|
||||
|
||||
fun test() {
|
||||
C(1)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(n: Int)
|
||||
actual class C(n: Int)
|
||||
|
||||
fun test() {
|
||||
C(1)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(n: Int)
|
||||
actual class C(n: Int)
|
||||
|
||||
fun test() {
|
||||
C(1)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C
|
||||
expect class C
|
||||
|
||||
fun test() {
|
||||
C()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C()
|
||||
actual class C()
|
||||
|
||||
fun test() {
|
||||
C()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class <caret>C
|
||||
actual class <caret>C
|
||||
|
||||
fun test() {
|
||||
C()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C(s: String) {
|
||||
expect class C(s: String) {
|
||||
constructor(n: Int, b: Boolean): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(s: String) {
|
||||
actual class C(s: String) {
|
||||
constructor(n: Int, b: Boolean): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(n: Int, b: Boolean) {
|
||||
actual class C(n: Int, b: Boolean) {
|
||||
constructor(s: String): this(1, false)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C(s: String) {
|
||||
expect class C(s: String) {
|
||||
constructor(n: Int): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(s: String) {
|
||||
actual class C(s: String) {
|
||||
<caret>constructor(n: Int): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class C(n: Int) {
|
||||
actual class C(n: Int) {
|
||||
constructor(s: String): this(1)
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
package headers2.funs3
|
||||
|
||||
class NonHeaderClass
|
||||
header class HeaderClass
|
||||
expect class HeaderClass
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
package headers.funs
|
||||
|
||||
class NonHeaderClass
|
||||
header class HeaderClass
|
||||
expect class HeaderClass
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
header class Baz
|
||||
header class Bar
|
||||
expect class Baz
|
||||
expect class Bar
|
||||
|
||||
fun test() {
|
||||
val baz: Baz = Baz()
|
||||
|
||||
Vendored
+2
-2
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
impl class Baz
|
||||
impl class Bar
|
||||
actual class Baz
|
||||
actual class Bar
|
||||
|
||||
fun test() {
|
||||
val baz: Baz = Baz()
|
||||
|
||||
Vendored
+2
-2
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
impl class Baz
|
||||
impl class Bar
|
||||
actual class Baz
|
||||
actual class Bar
|
||||
|
||||
fun test() {
|
||||
val baz: Baz = Baz()
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
header class /*rename*/Foo
|
||||
header class Bar
|
||||
expect class /*rename*/Foo
|
||||
expect class Bar
|
||||
|
||||
fun test() {
|
||||
val foo: Foo = Foo()
|
||||
|
||||
Vendored
+2
-2
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
impl class Foo
|
||||
impl class Bar
|
||||
actual class Foo
|
||||
actual class Bar
|
||||
|
||||
fun test() {
|
||||
val foo: Foo = Foo()
|
||||
|
||||
idea/testData/refactoring/renameMultiModule/headersAndImplsByHeaderClass/before/JVM/src/test/test.kt
Vendored
+2
-2
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
impl class Foo
|
||||
impl class Bar
|
||||
actual class Foo
|
||||
actual class Bar
|
||||
|
||||
fun test() {
|
||||
val foo: Foo = Foo()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C {
|
||||
expect class C {
|
||||
fun baz()
|
||||
fun baz(n: Int)
|
||||
fun bar(n: Int)
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun baz() { }
|
||||
impl fun baz(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual class C {
|
||||
actual fun baz() { }
|
||||
actual fun baz(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
}
|
||||
|
||||
fun test(c: C) {
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun baz() { }
|
||||
impl fun baz(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual class C {
|
||||
actual fun baz() { }
|
||||
actual fun baz(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
}
|
||||
|
||||
fun test(c: C) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C {
|
||||
expect class C {
|
||||
fun /*rename*/foo()
|
||||
fun foo(n: Int)
|
||||
fun bar(n: Int)
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo() { }
|
||||
impl fun foo(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual class C {
|
||||
actual fun foo() { }
|
||||
actual fun foo(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
}
|
||||
|
||||
fun test(c: C) {
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo() { }
|
||||
impl fun foo(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual class C {
|
||||
actual fun foo() { }
|
||||
actual fun foo(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
}
|
||||
|
||||
fun test(c: C) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C {
|
||||
expect class C {
|
||||
fun foo(x: Int)
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo(x: Int) {
|
||||
actual class C {
|
||||
actual fun foo(x: Int) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo(x: Int) {
|
||||
actual class C {
|
||||
actual fun foo(x: Int) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C {
|
||||
expect class C {
|
||||
fun foo(/*rename*/n: Int)
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo(n: Int) {
|
||||
actual class C {
|
||||
actual fun foo(n: Int) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl fun foo(n: Int) {
|
||||
actual class C {
|
||||
actual fun foo(n: Int) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C {
|
||||
expect class C {
|
||||
var baz: Int
|
||||
var bar: Int
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl var baz: Int
|
||||
actual class C {
|
||||
actual var baz: Int
|
||||
get() = 1
|
||||
set(value) {}
|
||||
|
||||
impl var bar: Int
|
||||
actual var bar: Int
|
||||
get() = 1
|
||||
set(value) {}
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl var baz: Int
|
||||
actual class C {
|
||||
actual var baz: Int
|
||||
get() = 1
|
||||
set(value) {}
|
||||
|
||||
impl var bar: Int
|
||||
actual var bar: Int
|
||||
get() = 1
|
||||
set(value) {}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class C {
|
||||
expect class C {
|
||||
var /*rename*/foo: Int
|
||||
var bar: Int
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl var foo: Int
|
||||
actual class C {
|
||||
actual var foo: Int
|
||||
get() = 1
|
||||
set(value) {}
|
||||
|
||||
impl var bar: Int
|
||||
actual var bar: Int
|
||||
get() = 1
|
||||
set(value) {}
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
package test
|
||||
|
||||
impl class C {
|
||||
impl var foo: Int
|
||||
actual class C {
|
||||
actual var foo: Int
|
||||
get() = 1
|
||||
set(value) {}
|
||||
|
||||
impl var bar: Int
|
||||
actual var bar: Int
|
||||
get() = 1
|
||||
set(value) {}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class Foo(x: Int)
|
||||
expect class Foo(x: Int)
|
||||
|
||||
fun test() {
|
||||
Foo(1)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class Foo(x: Int) {
|
||||
actual class Foo(x: Int) {
|
||||
constructor(s: String): this(0)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class Foo(s: String) {
|
||||
actual class Foo(s: String) {
|
||||
constructor(x: Int): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class Foo(/*rename*/n: Int)
|
||||
expect class Foo(/*rename*/n: Int)
|
||||
|
||||
fun test() {
|
||||
Foo(1)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class Foo(n: Int) {
|
||||
actual class Foo(n: Int) {
|
||||
constructor(s: String): this(0)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class Foo(s: String) {
|
||||
actual class Foo(s: String) {
|
||||
constructor(n: Int): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class Foo {
|
||||
expect class Foo {
|
||||
constructor(x: Int)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class Foo(x: Int) {
|
||||
actual class Foo(x: Int) {
|
||||
constructor(s: String): this(0)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class Foo(s: String) {
|
||||
actual class Foo(s: String) {
|
||||
constructor(x: Int): this("")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
header class Foo {
|
||||
expect class Foo {
|
||||
constructor(/*rename*/n: Int)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class Foo(n: Int) {
|
||||
actual class Foo(n: Int) {
|
||||
constructor(s: String): this(0)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
impl class Foo(s: String) {
|
||||
actual class Foo(s: String) {
|
||||
constructor(n: Int): this("")
|
||||
}
|
||||
|
||||
|
||||
idea/testData/refactoring/renameMultiModule/headersAndImplsByHeaderFun/after/Common/src/test/test.kt
Vendored
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
header fun baz()
|
||||
header fun baz(n: Int)
|
||||
header fun bar(n: Int)
|
||||
expect fun baz()
|
||||
expect fun baz(n: Int)
|
||||
expect fun bar(n: Int)
|
||||
|
||||
fun test() {
|
||||
baz()
|
||||
|
||||
Vendored
+3
-3
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
impl fun baz() { }
|
||||
impl fun baz(n: Int) { }
|
||||
impl fun bar(n: Int) { }
|
||||
actual fun baz() { }
|
||||
actual fun baz(n: Int) { }
|
||||
actual fun bar(n: Int) { }
|
||||
|
||||
fun test() {
|
||||
baz()
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user