Migration to actual/expect: quick-fix CreateActualFix with tests
This commit is contained in:
@@ -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
@@ -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) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user