Use OverrideMemberChooserObject to generate also primary constructors

Relates to KT-27093 and similar problems
This commit is contained in:
Mikhail Glukhikh
2018-11-14 12:45:39 +03:00
parent cd041cca71
commit 90a2f70fd1
11 changed files with 60 additions and 27 deletions
@@ -0,0 +1,7 @@
// "Create actual class for module proj_JVM (JVM)" "true"
import kotlin.random.Random
expect class My<caret>Generator(r: Random) {
val i: Int
}
@@ -0,0 +1,7 @@
// "Create actual class for module proj_JVM (JVM)" "true"
import kotlin.random.Random
expect class My<caret>Generator(r: Random) {
val i: Int
}
@@ -0,0 +1 @@
// MyGenerator: to be implemented
@@ -0,0 +1,7 @@
import kotlin.random.Random
// MyGenerator: to be implemented
actual class MyGenerator actual constructor(r: Random) {
actual val i: Int
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
}