Use OverrideMemberChooserObject to generate actual decls in quick-fixes
This can fix a lot of issues related to inexact generation, in particular #KT-27093 Fixed
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
// "Create actual class for module proj_JVM (JVM)" "true"
|
||||
|
||||
import kotlin.random.Random
|
||||
|
||||
expect class My<caret>Generator {
|
||||
fun generate(): Random
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create actual class for module proj_JVM (JVM)" "true"
|
||||
|
||||
import kotlin.random.Random
|
||||
|
||||
expect class MyGenerator {
|
||||
fun generate(): Random
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
// MyGenerator: to be implemented
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import kotlin.random.Random
|
||||
|
||||
// MyGenerator: to be implemented
|
||||
actual class MyGenerator {
|
||||
actual fun generate(): Random {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user