Use OverrideMemberChooserObject to generate also abstract actual decls

Relates to KT-27093 and similar problems
This commit is contained in:
Mikhail Glukhikh
2018-11-14 10:47:58 +03:00
parent 3612c2983e
commit cd041cca71
12 changed files with 80 additions and 46 deletions
@@ -1,13 +1,12 @@
// Abstract: to be implemented
actual abstract class Abstract {
actual abstract fun String.bar(y: Double): Boolean
actual abstract var status: Int
actual fun foo(param: String): Int {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
actual abstract fun String.bar(y: Double): Boolean
actual val isGood: Boolean
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
actual abstract var status: Int
}
@@ -0,0 +1,7 @@
// "Create actual class for module proj_JVM (JVM)" "true"
import kotlin.random.Random
expect abstract class My<caret>Generator {
abstract fun generate(): Random
}
@@ -0,0 +1,7 @@
// "Create actual class for module proj_JVM (JVM)" "true"
import kotlin.random.Random
expect abstract class MyGenerator {
abstract fun generate(): Random
}
@@ -0,0 +1 @@
// MyGenerator: to be implemented
@@ -0,0 +1,6 @@
import kotlin.random.Random
// MyGenerator: to be implemented
actual abstract class MyGenerator {
actual abstract fun generate(): Random
}
@@ -1,11 +1,8 @@
// Interface: to be implemented
actual interface Interface {
actual fun foo(param: String): Int
actual fun String.bar(y: Double): Boolean
actual val isGood: Boolean
actual var status: Int
actual class Nested {