Migration to actual/expect: quick-fix CreateActualFix with tests

This commit is contained in:
Mikhail Glukhikh
2017-09-14 18:25:33 +03:00
parent 810d62bbaf
commit fba1a2a2db
41 changed files with 121 additions and 120 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// "Create header class implementation for platform JVM" "true"
// "Create actual class for platform JVM" "true"
header class <caret>My {
fun foo(param: String): Int
@@ -1,4 +1,4 @@
// "Create header class implementation for platform JVM" "true"
// "Create actual class for platform JVM" "true"
header class My {
fun foo(param: String): Int
+6 -6
View File
@@ -1,22 +1,22 @@
// My: to be implemented
impl class My {
impl fun foo(param: String): Int {
actual class My {
actual fun foo(param: String): Int {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
impl fun String.bar(y: Double): Boolean {
actual fun String.bar(y: Double): Boolean {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
impl fun baz() {}
actual fun baz() {}
constructor(flag: Boolean) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
impl val isGood: Boolean
actual val isGood: Boolean
get() = TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
impl var status: Int
actual var status: Int
get() = TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
set(value) {}