Expand "Create expected..." also to a members if an expect class doesn't exist
#KT-31272 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
expect class <caret>My {
|
||||
fun foo(param: String): Int
|
||||
fun String.bar(y: Double): Boolean
|
||||
fun baz()
|
||||
|
||||
constructor(flag: Boolean)
|
||||
|
||||
val isGood: Boolean
|
||||
var status: Int
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual fun <caret>foo(param: String): Int = 42
|
||||
|
||||
actual fun String.bar(y: Double): Boolean = true
|
||||
|
||||
actual fun baz() {}
|
||||
|
||||
actual constructor(flag: Boolean) {}
|
||||
|
||||
actual val isGood: Boolean
|
||||
get() = true
|
||||
actual var status: Int
|
||||
get() = 0
|
||||
set(value) {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual fun <caret>foo(param: String): Int = 42
|
||||
|
||||
actual fun String.bar(y: Double): Boolean = true
|
||||
|
||||
actual fun baz() {}
|
||||
|
||||
actual constructor(flag: Boolean) {}
|
||||
|
||||
actual val isGood: Boolean
|
||||
get() = true
|
||||
actual var status: Int
|
||||
get() = 0
|
||||
set(value) {}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user