Migration: header->expect & impl->actual in IDEA test data

This commit is contained in:
Mikhail Glukhikh
2017-09-15 12:04:30 +03:00
parent 32cc619f15
commit 6e41bbc2a7
430 changed files with 663 additions and 663 deletions
@@ -1,6 +1,6 @@
// "Create actual class for platform JS" "true"
header abstract class <caret>Abstract {
expect abstract class <caret>Abstract {
fun foo(param: String): Int
abstract fun String.bar(y: Double): Boolean
@@ -1,6 +1,6 @@
// "Create actual class for platform JS" "true"
header abstract class Abstract {
expect abstract class Abstract {
fun foo(param: String): Int
abstract fun String.bar(y: Double): Boolean
@@ -1,5 +1,5 @@
// "Add 'operator' modifier" "true"
header class Foo {
expect class Foo {
fun <caret>unaryMinus()
}
@@ -1,5 +1,5 @@
// "Add 'operator' modifier" "true"
header class Foo {
expect class Foo {
operator fun unaryMinus()
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun unaryMinus() {
actual class Foo {
actual fun unaryMinus() {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl operator fun unaryMinus() {
actual class Foo {
actual operator fun unaryMinus() {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun unaryMinus() {
actual class Foo {
actual fun unaryMinus() {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl operator fun unaryMinus() {
actual class Foo {
actual operator fun unaryMinus() {
}
}
@@ -1,3 +1,3 @@
header class Foo {
expect class Foo {
fun unaryMinus()
}
@@ -1,3 +1,3 @@
header class Foo {
expect class Foo {
operator fun unaryMinus()
}
@@ -1,7 +1,7 @@
// "Add 'operator' modifier" "true"
impl class Foo {
impl fun <caret>unaryMinus() {
actual class Foo {
actual fun <caret>unaryMinus() {
}
}
@@ -1,7 +1,7 @@
// "Add 'operator' modifier" "true"
impl class Foo {
impl operator fun unaryMinus() {
actual class Foo {
actual operator fun unaryMinus() {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun unaryMinus() {
actual class Foo {
actual fun unaryMinus() {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl operator fun unaryMinus() {
actual class Foo {
actual operator fun unaryMinus() {
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
// "Create actual class for platform JVM" "true"
header class <caret>My {
expect class <caret>My {
fun foo(param: String): Int
fun String.bar(y: Double): Boolean
@@ -1,6 +1,6 @@
// "Create actual class for platform JVM" "true"
header class My {
expect class My {
fun foo(param: String): Int
fun String.bar(y: Double): Boolean
@@ -1 +1 @@
impl class My
actual class My
@@ -1 +1 @@
impl class My
actual class My
@@ -1 +1 @@
header class My
expect class My
@@ -1 +1 @@
header class My
expect class My
+1 -1
View File
@@ -1,6 +1,6 @@
// "Create actual class for platform JS" "true"
header enum class <caret>MyEnum {
expect enum class <caret>MyEnum {
FIRST,
SECOND,
LAST;
@@ -1,6 +1,6 @@
// "Create actual class for platform JS" "true"
header enum class MyEnum {
expect enum class MyEnum {
FIRST,
SECOND,
LAST;
@@ -1,3 +1,3 @@
// "Create actual function for platform JVM" "true"
header fun <caret>foo(arg: Int): String
expect fun <caret>foo(arg: Int): String
@@ -1,3 +1,3 @@
// "Create actual function for platform JVM" "true"
header fun foo(arg: Int): String
expect fun foo(arg: Int): String
@@ -1,6 +1,6 @@
// "Convert '(Int) -> Int' to 'Int.() -> Int'" "true"
header fun foo(n: Int, action: (<caret>Int) -> Int): Int
expect fun foo(n: Int, action: (<caret>Int) -> Int): Int
fun test() {
foo(1) { n -> n + 1 }
@@ -1,6 +1,6 @@
// "Convert '(Int) -> Int' to 'Int.() -> Int'" "true"
header fun foo(n: Int, action: Int.() -> Int): Int
expect fun foo(n: Int, action: Int.() -> Int): Int
fun test() {
foo(1) { this + 1 }
@@ -1,4 +1,4 @@
impl fun foo(n: Int, action: (Int) -> Int) = action(n)
actual fun foo(n: Int, action: (Int) -> Int) = action(n)
fun test() {
foo(1) { n -> n + 1 }
@@ -1,4 +1,4 @@
impl fun foo(n: Int, action: Int.() -> Int) = n.action()
actual fun foo(n: Int, action: Int.() -> Int) = n.action()
fun test() {
foo(1) { this + 1 }
@@ -1,4 +1,4 @@
impl fun foo(n: Int, action: (Int) -> Int) = action(n)
actual fun foo(n: Int, action: (Int) -> Int) = action(n)
fun test() {
foo(1) { n -> n + 1 }
@@ -1,4 +1,4 @@
impl fun foo(n: Int, action: Int.() -> Int) = n.action()
actual fun foo(n: Int, action: Int.() -> Int) = n.action()
fun test() {
foo(1) { this + 1 }
@@ -1,4 +1,4 @@
header fun foo(n: Int, action: (Int) -> Int): Int
expect fun foo(n: Int, action: (Int) -> Int): Int
fun test() {
foo(1) { n -> n + 1 }
@@ -1,4 +1,4 @@
header fun foo(n: Int, action: Int.() -> Int): Int
expect fun foo(n: Int, action: Int.() -> Int): Int
fun test() {
foo(1) { this + 1 }
@@ -1,6 +1,6 @@
// "Convert '(Int) -> Int' to 'Int.() -> Int'" "true"
impl fun foo(n: Int, action: (<caret>Int) -> Int) = action(n)
actual fun foo(n: Int, action: (<caret>Int) -> Int) = action(n)
fun test() {
foo(1) { n -> n + 1 }
@@ -1,6 +1,6 @@
// "Convert '(Int) -> Int' to 'Int.() -> Int'" "true"
impl fun foo(n: Int, action: Int.() -> Int) = n.action()
actual fun foo(n: Int, action: Int.() -> Int) = n.action()
fun test() {
foo(1) { this + 1 }
@@ -1,4 +1,4 @@
impl fun foo(n: Int, action: (Int) -> Int) = action(n)
actual fun foo(n: Int, action: (Int) -> Int) = action(n)
fun test() {
foo(1) { n -> n + 1 }
@@ -1,4 +1,4 @@
impl fun foo(n: Int, action: Int.() -> Int) = n.action()
actual fun foo(n: Int, action: Int.() -> Int) = n.action()
fun test() {
foo(1) { this + 1 }
@@ -1,6 +1,6 @@
// "Convert 'Int.() -> Int' to '(Int) -> Int'" "true"
header fun foo(n: Int, action: <caret>Int.() -> Int): Int
expect fun foo(n: Int, action: <caret>Int.() -> Int): Int
fun test() {
foo(1) { this + 1 }
@@ -1,6 +1,6 @@
// "Convert 'Int.() -> Int' to '(Int) -> Int'" "true"
header fun foo(n: Int, action: (Int) -> Int): Int
expect fun foo(n: Int, action: (Int) -> Int): Int
fun test() {
foo(1) { i -> i + 1 }
@@ -1,4 +1,4 @@
impl fun foo(n: Int, action: Int.() -> Int) = n.action()
actual fun foo(n: Int, action: Int.() -> Int) = n.action()
fun test() {
foo(1) { this + 1 }
@@ -1,4 +1,4 @@
impl fun foo(n: Int, action: (Int) -> Int) = action(n)
actual fun foo(n: Int, action: (Int) -> Int) = action(n)
fun test() {
foo(1) { i -> i + 1 }
@@ -1,4 +1,4 @@
impl fun foo(n: Int, action: Int.() -> Int) = n.action()
actual fun foo(n: Int, action: Int.() -> Int) = n.action()
fun test() {
foo(1) { this + 1 }
@@ -1,4 +1,4 @@
impl fun foo(n: Int, action: (Int) -> Int) = action(n)
actual fun foo(n: Int, action: (Int) -> Int) = action(n)
fun test() {
foo(1) { i -> i + 1 }
@@ -1,4 +1,4 @@
header fun foo(n: Int, action: Int.() -> Int): Int
expect fun foo(n: Int, action: Int.() -> Int): Int
fun test() {
foo(1) { this + 1 }
@@ -1,4 +1,4 @@
header fun foo(n: Int, action: (Int) -> Int): Int
expect fun foo(n: Int, action: (Int) -> Int): Int
fun test() {
foo(1) { i -> i + 1 }
@@ -1,6 +1,6 @@
// "Convert 'Int.() -> Int' to '(Int) -> Int'" "true"
impl fun foo(n: Int, action: <caret>Int.() -> Int) = n.action()
actual fun foo(n: Int, action: <caret>Int.() -> Int) = n.action()
fun test() {
foo(1) { this + 1 }
@@ -1,6 +1,6 @@
// "Convert 'Int.() -> Int' to '(Int) -> Int'" "true"
impl fun foo(n: Int, action: (Int) -> Int) = action(n)
actual fun foo(n: Int, action: (Int) -> Int) = action(n)
fun test() {
foo(1) { i -> i + 1 }
@@ -1,4 +1,4 @@
impl fun foo(n: Int, action: Int.() -> Int) = n.action()
actual fun foo(n: Int, action: Int.() -> Int) = n.action()
fun test() {
foo(1) { this + 1 }
@@ -1,4 +1,4 @@
impl fun foo(n: Int, action: (Int) -> Int) = action(n)
actual fun foo(n: Int, action: (Int) -> Int) = action(n)
fun test() {
foo(1) { i -> i + 1 }
@@ -5,4 +5,4 @@ interface I {
fun foo()
}
header class <caret>Bar : I
expect class <caret>Bar : I
@@ -5,6 +5,6 @@ interface I {
fun foo()
}
header class <caret>Bar : I {
expect class <caret>Bar : I {
override fun foo()
}
@@ -1,3 +1,3 @@
header abstract class Bar {
expect abstract class Bar {
abstract fun foo()
}
@@ -1,3 +1,3 @@
header abstract class Bar {
expect abstract class Bar {
abstract fun foo()
}
@@ -1,8 +1,8 @@
// "Implement members" "true"
// DISABLE-ERRORS
abstract impl class Bar {
abstract impl fun foo()
abstract actual class Bar {
abstract actual fun foo()
}
class <caret>X : Bar()
@@ -1,8 +1,8 @@
// "Implement members" "true"
// DISABLE-ERRORS
abstract impl class Bar {
abstract impl fun foo()
abstract actual class Bar {
abstract actual fun foo()
}
class X : Bar() {
@@ -1,6 +1,6 @@
// "Create actual interface for platform JVM" "true"
header interface <caret>Interface {
expect interface <caret>Interface {
fun foo(param: String): Int
fun String.bar(y: Double): Boolean
@@ -1,6 +1,6 @@
// "Create actual interface for platform JVM" "true"
header interface Interface {
expect interface Interface {
fun foo(param: String): Int
fun String.bar(y: Double): Boolean
@@ -1,6 +1,6 @@
// "Convert parameter to receiver" "true"
header class Foo {
expect class Foo {
fun foo(n: Int, <caret>s: String)
}
@@ -1,6 +1,6 @@
// "Convert parameter to receiver" "true"
header class Foo {
expect class Foo {
fun String.foo(n: Int)
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun foo(n: Int, s: String) {
actual class Foo {
actual fun foo(n: Int, s: String) {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun String.foo(n: Int) {
actual class Foo {
actual fun String.foo(n: Int) {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun foo(n: Int, s: String) {
actual class Foo {
actual fun foo(n: Int, s: String) {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun String.foo(n: Int) {
actual class Foo {
actual fun String.foo(n: Int) {
}
}
@@ -1,4 +1,4 @@
header class Foo {
expect class Foo {
fun foo(n: Int, s: String)
}
@@ -1,4 +1,4 @@
header class Foo {
expect class Foo {
fun String.foo(n: Int)
}
@@ -1,7 +1,7 @@
// "Convert parameter to receiver" "true"
impl class Foo {
impl fun foo(n: Int, <caret>s: String) {
actual class Foo {
actual fun foo(n: Int, <caret>s: String) {
}
}
@@ -1,7 +1,7 @@
// "Convert parameter to receiver" "true"
impl class Foo {
impl fun String.foo(n: Int) {
actual class Foo {
actual fun String.foo(n: Int) {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun foo(n: Int, s: String) {
actual class Foo {
actual fun foo(n: Int, s: String) {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun String.foo(n: Int) {
actual class Foo {
actual fun String.foo(n: Int) {
}
}
@@ -1,6 +1,6 @@
// "Convert receiver to parameter" "true"
header class Foo {
expect class Foo {
fun <caret>String.foo(n: Int)
}
@@ -1,6 +1,6 @@
// "Convert receiver to parameter" "true"
header class Foo {
expect class Foo {
fun foo(s: String, n: Int)
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun String.foo(n: Int) {
actual class Foo {
actual fun String.foo(n: Int) {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun foo(s: String, n: Int) {
actual class Foo {
actual fun foo(s: String, n: Int) {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun String.foo(n: Int) {
actual class Foo {
actual fun String.foo(n: Int) {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun foo(s: String, n: Int) {
actual class Foo {
actual fun foo(s: String, n: Int) {
}
}
@@ -1,4 +1,4 @@
header class Foo {
expect class Foo {
fun String.foo(n: Int)
}
@@ -1,4 +1,4 @@
header class Foo {
expect class Foo {
fun foo(s: String, n: Int)
}
@@ -1,7 +1,7 @@
// "Convert receiver to parameter" "true"
impl class Foo {
impl fun <caret>String.foo(n: Int) {
actual class Foo {
actual fun <caret>String.foo(n: Int) {
}
}
@@ -1,7 +1,7 @@
// "Convert receiver to parameter" "true"
impl class Foo {
impl fun foo(s: String, n: Int) {
actual class Foo {
actual fun foo(s: String, n: Int) {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun String.foo(n: Int) {
actual class Foo {
actual fun String.foo(n: Int) {
}
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun foo(s: String, n: Int) {
actual class Foo {
actual fun foo(s: String, n: Int) {
}
}
@@ -1,5 +1,5 @@
// "Convert member to extension" "true"
header class Foo {
expect class Foo {
fun <caret>foo(n: Int)
}
@@ -1,6 +1,6 @@
// "Convert member to extension" "true"
header class Foo {
expect class Foo {
}
expect fun Foo.foo(n: Int)
@@ -1,5 +1,5 @@
impl class Foo {
impl fun foo(n: Int) {
actual class Foo {
actual fun foo(n: Int) {
}
}
@@ -1,6 +1,6 @@
impl class Foo {
actual class Foo {
}
impl fun Foo.foo(n: Int) {
actual fun Foo.foo(n: Int) {
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun foo(n: Int) {
actual class Foo {
actual fun foo(n: Int) {
}
}
@@ -1,6 +1,6 @@
impl class Foo {
actual class Foo {
}
impl fun Foo.foo(n: Int) {
actual fun Foo.foo(n: Int) {
}
@@ -1,3 +1,3 @@
header class Foo {
expect class Foo {
fun foo(n: Int)
}
@@ -1,4 +1,4 @@
header class Foo {
expect class Foo {
}
expect fun Foo.foo(n: Int)
@@ -1,7 +1,7 @@
// "Convert member to extension" "true"
impl class Foo {
impl fun <caret>foo(n: Int) {
actual class Foo {
actual fun <caret>foo(n: Int) {
}
}
@@ -1,8 +1,8 @@
// "Convert member to extension" "true"
impl class Foo {
actual class Foo {
}
impl fun Foo.foo(n: Int) {
actual fun Foo.foo(n: Int) {
}
@@ -1,5 +1,5 @@
impl class Foo {
impl fun foo(n: Int) {
actual class Foo {
actual fun foo(n: Int) {
}
}
@@ -1,6 +1,6 @@
impl class Foo {
actual class Foo {
}
impl fun Foo.foo(n: Int) {
actual fun Foo.foo(n: Int) {
}
@@ -1,5 +1,5 @@
// "Convert member to extension" "true"
header class Foo {
expect class Foo {
val <caret>foo: Int
}
@@ -1,6 +1,6 @@
// "Convert member to extension" "true"
header class Foo {
expect class Foo {
}
expect val Foo.foo: Int
@@ -1,3 +1,3 @@
impl class Foo {
impl val foo get() = 1
actual class Foo {
actual val foo get() = 1
}
@@ -1,4 +1,4 @@
impl class Foo {
actual class Foo {
}
impl val Foo.foo get() = 1
actual val Foo.foo get() = 1
@@ -1,3 +1,3 @@
impl class Foo {
impl val foo get() = 2
actual class Foo {
actual val foo get() = 2
}
@@ -1,4 +1,4 @@
impl class Foo {
actual class Foo {
}
impl val Foo.foo get() = 2
actual val Foo.foo get() = 2
@@ -4,6 +4,6 @@
// ACTION: Move to companion object
// ACTION: Move to constructor
header class Foo {
expect class Foo {
val <caret>foo: Int
}
@@ -1,3 +1,3 @@
impl class Foo {
impl val foo = 1
actual class Foo {
actual val foo = 1
}

Some files were not shown because too many files have changed in this diff Show More